summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-08-14 00:14:03 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-08-14 00:14:03 -0400
commit51ac4d1fb5e4f811b8c46b2b6d23b234592eacc2 (patch)
tree26735a3d622922910dd386d3e602ab4acb199688 /tests
parent546fbfb47cc1e79ceb91a26fb0d2c27973e2d92b (diff)
downloadgem5-51ac4d1fb5e4f811b8c46b2b6d23b234592eacc2.tar.xz
Regression: Use test-progs in /dist instead of tests/test-progs since they all aren't there.
--HG-- extra : convert_revision : 558b970f522f95e3492b7225f227c96cd5e003c3
Diffstat (limited to 'tests')
-rw-r--r--tests/run.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/run.py b/tests/run.py
index df34faca8..9b77ff9d2 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2006 The Regents of The University of Michigan
+# Copyright (c) 2006-2007 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -33,7 +33,10 @@ import os, sys
# find path to directory containing this file
tests_root = os.path.dirname(__file__)
-test_progs = os.path.join(tests_root, 'test-progs')
+if os.path.isdir('/dist/m5/regression/test-progs'):
+ test_progs = '/dist/m5/regression/test-progs'
+else:
+ test_progs = os.path.join(tests_root, 'test-progs')
# generate path to binary file
def binpath(app, file=None):