Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.addTask("testAugmentedEnv", "[ $FOO == 'BAZ' ]; exit $?", env=augmented_env)
# test funny characters that have shown to cause trouble on some sge installations
funky_env = {}
funky_env["PATH"] = "/bin"
funky_env["_"] = "| %s %F \n"
# in this case we just want the job to run at all:
self.addTask("testFunkyEnv", "echo 'foo'; exit $?", env=funky_env)
assert("FOO" not in os.environ)
# Instantiate the workflow
#
wflow = EnvWorkflow()
# Run the worklow:
#
retval = wflow.run(mode="local")
sys.exit(retval)