diff options
author | 2015-03-04 17:29:14 -0800 | |
---|---|---|
committer | 2015-03-04 17:29:14 -0800 | |
commit | 132ce6a232e3a82967d5fcccda01fc33179163ff (patch) | |
tree | 03c3aec30b989e5a3fcd23b01dbd80378f436fde /tools/run_tests/jobset.py | |
parent | 9cf9fcaf53bf16c7a688f7f45740e729b503ba75 (diff) |
Added CONFIG environment variable to build and test scripts, fixed some bugs
Diffstat (limited to 'tools/run_tests/jobset.py')
-rwxr-xr-x | tools/run_tests/jobset.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py index ad65da535b..26caf031c3 100755 --- a/tools/run_tests/jobset.py +++ b/tools/run_tests/jobset.py @@ -136,7 +136,7 @@ def which(filename): class JobSpec(object): """Specifies what to run for a job.""" - def __init__(self, cmdline, shortname=None, environ={}, hash_targets=[]): + def __init__(self, cmdline, shortname=None, environ=None, hash_targets=None): """ Arguments: cmdline: a list of arguments to pass as the command line @@ -144,6 +144,10 @@ class JobSpec(object): hash_targets: which files to include in the hash representing the jobs version (or empty, indicating the job should not be hashed) """ + if environ is None: + environ = {} + if hash_targets is None: + hash_targets = [] self.cmdline = cmdline self.environ = environ self.shortname = cmdline[0] if shortname is None else shortname |