Skip to content
Snippets Groups Projects
Commit dd6cfa8f authored by CG Linden's avatar CG Linden
Browse files

Uncomment the run_build_test.py args to debug problem with coverity builds

parent 95705539
No related branches found
No related tags found
No related merge requests found
...@@ -64,20 +64,20 @@ def main(command, libpath=[], vars={}): ...@@ -64,20 +64,20 @@ def main(command, libpath=[], vars={}):
# might not exist; instead of KeyError, just use an empty string. # might not exist; instead of KeyError, just use an empty string.
dirs = os.environ.get(var, "").split(os.pathsep) dirs = os.environ.get(var, "").split(os.pathsep)
# Append the sequence in libpath # Append the sequence in libpath
## print "%s += %r" % (var, libpath) print "%s += %r" % (var, libpath)
dirs.extend(libpath) dirs.extend(libpath)
# Now rebuild the path string. This way we use a minimum of separators # Now rebuild the path string. This way we use a minimum of separators
# -- and we avoid adding a pointless separator when libpath is empty. # -- and we avoid adding a pointless separator when libpath is empty.
os.environ[var] = os.pathsep.join(dirs) os.environ[var] = os.pathsep.join(dirs)
# Now handle arbitrary environment variables. The tricky part is ensuring # Now handle arbitrary environment variables. The tricky part is ensuring
# that all the keys and values we try to pass are actually strings. # that all the keys and values we try to pass are actually strings.
## if vars: if vars:
## print "Setting:" print "Setting:"
## for key, value in vars.iteritems(): for key, value in vars.iteritems():
## print "%s=%s" % (key, value) print "%s=%s" % (key, value)
os.environ.update(dict([(str(key), str(value)) for key, value in vars.iteritems()])) os.environ.update(dict([(str(key), str(value)) for key, value in vars.iteritems()]))
# Run the child process. # Run the child process.
## print "Running: %s" % " ".join(command) print "Running: %s" % " ".join(command)
return subprocess.call(command) return subprocess.call(command)
if __name__ == "__main__": if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment