mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
use -f instead of /dev/null in the tests
This commit is contained in:
@@ -54,7 +54,7 @@ class TestCommandFactory(TestCase):
|
||||
self.job_wrapper.command_line = f"{TRAP_KILL_CONTAINER}{MOCK_COMMAND_LINE}"
|
||||
expected_command_line = self._surround_command(MOCK_COMMAND_LINE).replace(
|
||||
"""trap 'rm "$__out" "$__err"' EXIT""",
|
||||
"""trap 'rm "$__out" "$__err" 2> /dev/null || true; _on_exit' EXIT"""
|
||||
"""trap 'rm -f "$__out" "$__err"; _on_exit' EXIT"""
|
||||
)
|
||||
self.__assert_command_is(expected_command_line)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user