the line "import common" is used to setup the absolute paths so that after that we can say things like
"from autotest_lib.client.common_lib import error". However we still have some left over imports that
look like "from common import error" that when mixed with the above are breaking our ability to automate
the running of the unittests. This file created a preamble that is inserted into every control file. It is being cleaned up since we are moving towards closing this
error.
In short, currently calling "import common" in an entry point, performs the magic of creating the autotest_lib root, and then goes on to set common as a shortcut for autotest_lib.client.common_lib. This created havoc for our unittest runner. So this change is replacing the common with the full path since we are planning on getting rid of the use of common as a shortcut.
Signed-off-by: Travis Miller <raphtee@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1681 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/job.py b/client/bin/job.py
index 103110c..b25de5a 100755
--- a/client/bin/job.py
+++ b/client/bin/job.py
@@ -15,8 +15,8 @@
from autotest_lib.client.common_lib import error, barrier, logging, utils
JOB_PREAMBLE = """
-from common.error import *
-from autotest_utils import *
+from autotest_lib.common.common_lib.error import *
+from autotest_lib.client.bin.autotest_utils import *
"""
class StepError(error.AutotestError):