diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-08-10 11:55:06 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-11 02:42:37 +0000 |
commit | bbf00434d68f9433727a231ea41128cbcca53a25 (patch) | |
tree | f36bdfac7ad523a91bccaa5bb4e57913e027d988 /zephyr/zmake/tests | |
parent | d8b43b5c98a6ab10bfe3ab6e3d6cd7dd90aef9a9 (diff) | |
download | chrome-ec-bbf00434d68f9433727a231ea41128cbcca53a25.tar.gz |
zephyr: zmake: drop "print-versions" subcommand
This command was intended for use in ebuild, but never instrumented.
Remove the dead code.
BUG=b:195571108
BRANCH=none
TEST=zephyr/zmake/run_tests.sh
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I68d3da2e4dfdb4a44b5a58d2b8e2c01da373c06f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3086366
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/zmake/tests')
-rw-r--r-- | zephyr/zmake/tests/test_print_versions.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/zephyr/zmake/tests/test_print_versions.py b/zephyr/zmake/tests/test_print_versions.py deleted file mode 100644 index f65fa569a3..0000000000 --- a/zephyr/zmake/tests/test_print_versions.py +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2021 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -import pathlib -import tempfile - -import zmake.zmake as zm - - -def generate_zmake_yaml(dest, versions): - with open(dest, "w") as f: - f.write("board: test\n") - f.write("output-type: elf\n") - f.write("toolchain: llvm\n") - f.write("supported-zephyr-versions:\n") - for version in versions: - f.write(" - {}\n".format(version)) - - -def test_single_version(capsys): - with tempfile.TemporaryDirectory() as temp_dir_name: - generate_zmake_yaml(pathlib.Path(temp_dir_name) / "zmake.yaml", ["v2.5"]) - zm.Zmake().print_versions(temp_dir_name) - captured = capsys.readouterr().out.splitlines() - assert captured == ["v2.5"] - - -def test_multiple_versions(capsys): - with tempfile.TemporaryDirectory() as temp_dir_name: - generate_zmake_yaml( - pathlib.Path(temp_dir_name) / "zmake.yaml", ["v2.5", "v2.6"] - ) - zm.Zmake().print_versions(temp_dir_name) - captured = capsys.readouterr().out.splitlines() - # Compare the sorted lists since we don't guarantee anything about the - # print order - assert sorted(captured) == sorted(["v2.5", "v2.6"]) |