summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-03-10 13:38:44 -0500
committerNathan Binkert <binkertn@umich.edu>2005-03-10 13:38:44 -0500
commit5af1ad62de148e2109503270b0ba57d6846b4782 (patch)
tree8d2202b279bde54aac2b8328a440e68ffc82f547 /test
parent331460dfe88af6b026c30277d2904cf87ce37743 (diff)
downloadgem5-5af1ad62de148e2109503270b0ba57d6846b4782.tar.xz
update genini so it is more like m5
test/genini.py: import m5config after environment variables are setup so the behaviour is more like that of the simulator and so what are normally compile-time variables like FULL_SYSTEM can be properly set from the command line. --HG-- extra : convert_revision : 1951d3015b091338724b66a3a86a818f9ac97b26
Diffstat (limited to 'test')
-rwxr-xr-xtest/genini.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/genini.py b/test/genini.py
index 9c28ef361..f4d1575db 100755
--- a/test/genini.py
+++ b/test/genini.py
@@ -34,7 +34,6 @@ sys.path.append(joinpath(mypath, '../util/pbs'))
sys.path.append(joinpath(mypath, '../sim/pyconfig'))
from importer import AddToPath, LoadMpyFile
-from m5config import *
AddToPath('.')
@@ -49,12 +48,14 @@ try:
else:
name = arg[:offset]
value = arg[offset+1:]
- env[name] = value
+ os.environ[name] = value
if opt == '-I':
AddToPath(arg)
except getopt.GetoptError:
sys.exit('Improper Usage')
+from m5config import *
+
for arg in args:
LoadMpyFile(arg)