tests: Updated tests to download from http://dist.gem5.org
[gem5.git] / tests / gem5 / m5_util / test_exit.py
index a766db4201ddea7b7de4db2ccb859b6d802ea6be..22680740b71d8f2f47ea232d48e4706f549bf661 100644 (file)
@@ -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',)
 )