Add hooks to setup deps in main job structure and fsx. git-svn-id: http://test.kernel.org/svn/autotest/trunk@155 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/bin/autotest_utils.py b/bin/autotest_utils.py index 41aa792..3a28404 100755 --- a/bin/autotest_utils.py +++ b/bin/autotest_utils.py
@@ -240,6 +240,27 @@ continue +def environ(env_key): + if (os.environ.has_key(env_key)): + return os.environ(env_key) + else: + return '' + + +def prepend_path(newpath, oldpath): + if (oldpath): + return newpath + ':' + oldpath + else: + return newpath + + +def append_path(oldpath, newpath): + if (oldpath): + return oldpath + ':' + newpath + else: + return newpath + + class fd_stack: # Note that we need to redirect both the sys.stdout type descriptor # (which print, etc use) and the low level OS numbered descriptor