@@ -2256,9 +2256,16 @@ def test_toy_modaltsoftname(self):
22562256
22572257 def test_toy_build_trace (self ):
22582258 """Test use of --trace"""
2259+
2260+ topdir = os .path .dirname (os .path .abspath (__file__ ))
2261+ toy_ec_file = os .path .join (topdir , 'easyconfigs' , 'test_ecs' , 't' , 'toy' , 'toy-0.0.eb' )
2262+
2263+ test_ec = os .path .join (self .test_prefix , 'test.eb' )
2264+ write_file (test_ec , read_file (toy_ec_file ) + '\n sanity_check_commands = ["toy"]' )
2265+
22592266 self .mock_stderr (True )
22602267 self .mock_stdout (True )
2261- self .test_toy_build (extra_args = ['--trace' , '--experimental' ], verify = False , testing = False )
2268+ self .test_toy_build (ec_file = test_ec , extra_args = ['--trace' , '--experimental' ], verify = False , testing = False )
22622269 stderr = self .get_stderr ()
22632270 stdout = self .get_stdout ()
22642271 self .mock_stderr (False )
@@ -2283,6 +2290,8 @@ def test_toy_build_trace(self):
22832290 r"== sanity checking\.\.\." ,
22842291 r" >> file 'bin/yot' or 'bin/toy' found: OK" ,
22852292 r" >> \(non-empty\) directory 'bin' found: OK" ,
2293+ r" >> running command 'toy' \.\.\." ,
2294+ r" >> result for command 'toy': OK" ,
22862295 ]) + r'$' ,
22872296 r"^== creating module\.\.\.\n >> generating module file @ .*/modules/all/toy/0\.0(?:\.lua)?$" ,
22882297 ]
0 commit comments