X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=tests%2Fgem5%2Fm5_util%2Ftest_exit.py;h=22680740b71d8f2f47ea232d48e4706f549bf661;hb=af02aa6a0dc89f22dd0d3b37c3fcc63c61d91417;hp=a766db4201ddea7b7de4db2ccb859b6d802ea6be;hpb=308a558057403f96736570179764ee363b97bfb3;p=gem5.git diff --git a/tests/gem5/m5_util/test_exit.py b/tests/gem5/m5_util/test_exit.py index a766db420..22680740b 100644 --- a/tests/gem5/m5_util/test_exit.py +++ b/tests/gem5/m5_util/test_exit.py @@ -37,8 +37,12 @@ m5_exit_regex = re.compile( r'Exiting @ tick \d* because m5_exit instruction encountered' ) -test_program = DownloadedProgram('test-progs/m5-exit/bin/x86/linux/',\ - 'm5_exit') +path = joinpath(absdirpath(__file__), '..', + 'test-progs', 'hello', 'bin', 'x86', 'linux') +filename = 'm5_exit' +url = 'http://dist.gem5.org/dist/current/test-progs/' + + 'm5-exit/bin/x86/linux/m5_exit' +test_program = DownloadedProgram(url, path, filename) a = verifier.MatchRegex(m5_exit_regex) gem5_verify_config( @@ -46,6 +50,6 @@ gem5_verify_config( verifiers=[a], fixtures=(test_program,), config=os.path.join(config.base_dir, 'configs', 'example','se.py'), - config_args=['--cmd', test_program.path], + config_args=['--cmd', joinpath(test_program.path, filename)], valid_isas=('X86',) )