diff options
author | Darius Makovsky <traveltissues@protonmail.com> | 2019-07-10 18:42:10 +0100 |
---|---|---|
committer | Darius Makovsky <traveltissues@protonmail.com> | 2019-07-18 10:20:01 +0100 |
commit | 490fed1cfc712a3aeee3ad3cdc9520edbfa1675c (patch) | |
tree | 496c631a82fc7fd488a47747e31ebba3fb4ce202 | |
parent | db57101b66629d3c3ac0af76354042eddfc3fff9 (diff) | |
download | buildstream-490fed1cfc712a3aeee3ad3cdc9520edbfa1675c.tar.gz |
Make the Cli verbose for updatingtraveltissues/fix-update-script
Return if there is no result from parsing the element
-rwxr-xr-x | tests/cachekey/update.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/cachekey/update.py b/tests/cachekey/update.py index e6f4198ef..feda5dbde 100755 --- a/tests/cachekey/update.py +++ b/tests/cachekey/update.py @@ -42,7 +42,7 @@ def update_keys(): with tempfile.TemporaryDirectory(dir=PROJECT_DIR) as tmpdir: directory = os.path.join(tmpdir, 'cache') os.makedirs(directory) - cli = Cli(directory, verbose=False) + cli = Cli(directory, verbose=True) # Run bst show result = cli.run(project=PROJECT_DIR, silent=True, args=[ @@ -52,6 +52,9 @@ def update_keys(): ]) # Load the actual keys, and the expected ones if they exist + if not result.output: + print("No results from parsing {}:target.bst".format(PROJECT_DIR)) + return actual_keys = parse_output_keys(result.output) expected_keys = load_expected_keys(PROJECT_DIR, actual_keys, raise_error=False) |