mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
test_driver: stop printing tmpdir on failure
We delete the tmpdir unconditionally once all tests are completed, so there is no point in printing a path which will no longer exist when analyzing test failures. The paths don't contain any useful information, so let's delete them to avoid confusion and useless output.
This commit is contained in:
committed by
Fabian Boehm
parent
8064a13af9
commit
dd93a7e003
@@ -334,7 +334,7 @@ async def run_test(
|
||||
elif ret:
|
||||
return TestPass(arg, duration_ms)
|
||||
else:
|
||||
return TestFail(arg, duration_ms, f"{error_message}\nTmpdir is {home}")
|
||||
return TestFail(arg, duration_ms, error_message)
|
||||
elif test_file_path.endswith(".py"):
|
||||
test_env.update(
|
||||
{
|
||||
@@ -371,7 +371,6 @@ async def run_test(
|
||||
error_message += stdout.decode("utf-8")
|
||||
if stderr:
|
||||
error_message += stderr.decode("utf-8")
|
||||
error_message += f"Tmpdir is {home}"
|
||||
return TestFail(arg, duration_ms, error_message)
|
||||
else:
|
||||
return TestFail(arg, None, "Error in test driver. This should be unreachable.")
|
||||
|
||||
Reference in New Issue
Block a user