SConscript (3021:3b67ff91f0d6) SConscript (3045:6d46915c242c)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 157 unchanged lines hidden (view full) ---

166 base_cmd = '${SOURCES[0]} -d $TARGET.dir ${SOURCES[1]} %s' % tgt_dir
167 # stdout and stderr files
168 cmd_stdout = '${TARGETS[0]}'
169 cmd_stderr = '${TARGETS[1]}'
170
171 # Prefix test run with batch job submission command if appropriate.
172 # Output redirection is also different for batch runs.
173 # Batch command also supports timeout arg (in seconds, not minutes).
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 157 unchanged lines hidden (view full) ---

166 base_cmd = '${SOURCES[0]} -d $TARGET.dir ${SOURCES[1]} %s' % tgt_dir
167 # stdout and stderr files
168 cmd_stdout = '${TARGETS[0]}'
169 cmd_stderr = '${TARGETS[1]}'
170
171 # Prefix test run with batch job submission command if appropriate.
172 # Output redirection is also different for batch runs.
173 # Batch command also supports timeout arg (in seconds, not minutes).
174 timeout = 15 # used to be a param, probably should be again
174 if env['BATCH']:
175 cmd = [env['BATCH_CMD'], '-t', str(timeout * 60),
176 '-o', cmd_stdout, '-e', cmd_stderr, base_cmd]
177 else:
178 cmd = [base_cmd, '>', cmd_stdout, '2>', cmd_stderr]
179
180 env.Command([tgt('stdout'), tgt('stderr'), new_stats],
181 [env.M5Binary, 'run.py'], ' '.join(cmd))

--- 36 unchanged lines hidden ---
175 if env['BATCH']:
176 cmd = [env['BATCH_CMD'], '-t', str(timeout * 60),
177 '-o', cmd_stdout, '-e', cmd_stderr, base_cmd]
178 else:
179 cmd = [base_cmd, '>', cmd_stdout, '2>', cmd_stderr]
180
181 env.Command([tgt('stdout'), tgt('stderr'), new_stats],
182 [env.M5Binary, 'run.py'], ' '.join(cmd))

--- 36 unchanged lines hidden ---