@@ -541,9 +541,6 @@ def test_run_shell_cmd_fail(self):
541541 def handler (signum , _ ):
542542 raise RuntimeError ("Signal handler called with signal %s" % signum )
543543
544- # disable trace output for this test (so stdout remains empty)
545- update_build_option ('trace' , False )
546-
547544 orig_sigalrm_handler = signal .getsignal (signal .SIGALRM )
548545
549546 try :
@@ -837,8 +834,6 @@ def test_run_cmd_trace(self):
837834 regex = re .compile ('\n ' .join (pattern ))
838835 self .assertTrue (regex .search (stdout ), "Pattern '%s' found in: %s" % (regex .pattern , stdout ))
839836
840- init_config (build_options = {'trace' : False })
841-
842837 self .mock_stdout (True )
843838 self .mock_stderr (True )
844839 (out , ec ) = run_cmd ("echo hello" )
@@ -851,8 +846,6 @@ def test_run_cmd_trace(self):
851846 self .assertTrue (stderr .strip ().startswith ("WARNING: Deprecated functionality" ))
852847 self .assertEqual (stdout , '' )
853848
854- init_config (build_options = {'trace' : True })
855-
856849 # also test with command that is fed input via stdin
857850 self .mock_stdout (True )
858851 self .mock_stderr (True )
@@ -869,8 +862,6 @@ def test_run_cmd_trace(self):
869862 regex = re .compile ('\n ' .join (pattern ))
870863 self .assertTrue (regex .search (stdout ), "Pattern '%s' found in: %s" % (regex .pattern , stdout ))
871864
872- init_config (build_options = {'trace' : False })
873-
874865 self .mock_stdout (True )
875866 self .mock_stderr (True )
876867 (out , ec ) = run_cmd ('cat' , inp = 'hello' )
@@ -925,8 +916,6 @@ def test_run_shell_cmd_trace(self):
925916 regex = re .compile ('\n ' .join (pattern ))
926917 self .assertTrue (regex .search (stdout ), "Pattern '%s' found in: %s" % (regex .pattern , stdout ))
927918
928- init_config (build_options = {'trace' : False })
929-
930919 self .mock_stdout (True )
931920 self .mock_stderr (True )
932921 res = run_shell_cmd ("echo hello" )
@@ -939,8 +928,6 @@ def test_run_shell_cmd_trace(self):
939928 self .assertEqual (stderr , '' )
940929 self .assertEqual (stdout , '' )
941930
942- init_config (build_options = {'trace' : True })
943-
944931 # trace output can be disabled on a per-command basis via 'hidden' option
945932 for trace in (True , False ):
946933 init_config (build_options = {'trace' : trace })
@@ -2059,9 +2046,6 @@ def post_run_shell_cmd_hook(cmd, *args, **kwargs):
20592046 write_file (hooks_file , hooks_file_txt )
20602047 update_build_option ('hooks' , hooks_file )
20612048
2062- # disable trace output to make checking of generated output produced by hooks easier
2063- update_build_option ('trace' , False )
2064-
20652049 with self .mocked_stdout_stderr ():
20662050 run_cmd ("make" )
20672051 stdout = self .get_stdout ()
@@ -2133,9 +2117,6 @@ def post_run_shell_cmd_hook(cmd, *args, **kwargs):
21332117 write_file (hooks_file , hooks_file_txt )
21342118 update_build_option ('hooks' , hooks_file )
21352119
2136- # disable trace output to make checking of generated output produced by hooks easier
2137- update_build_option ('trace' , False )
2138-
21392120 with self .mocked_stdout_stderr ():
21402121 run_shell_cmd ("make" )
21412122 stdout = self .get_stdout ()
0 commit comments