diff options
Diffstat (limited to 'tests/cachekey')
-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) |