Show More
@@ -376,7 +376,7 b' def onlyif_cmds_exist(*commands):' | |||||
376 | Decorator to skip test when at least one of `commands` is not found. |
|
376 | Decorator to skip test when at least one of `commands` is not found. | |
377 | """ |
|
377 | """ | |
378 | for cmd in commands: |
|
378 | for cmd in commands: | |
379 | reason = "This test runs only if command '{cmd}' is installed" |
|
379 | reason = f"This test runs only if command '{cmd}' is installed" | |
380 | if not shutil.which(cmd): |
|
380 | if not shutil.which(cmd): | |
381 | if os.environ.get("IPTEST_WORKING_DIR", None) is not None: |
|
381 | if os.environ.get("IPTEST_WORKING_DIR", None) is not None: | |
382 | return skip(reason) |
|
382 | return skip(reason) |
General Comments 0
You need to be logged in to leave comments.
Login now