[autotest] File bugs on test failure.
When a test fails as part of a suite, if |file_bugs| is true, then
file a bug on the specified bug tracker reporting the failure.
Relanding Ie7664368583f645110fc562010897fbda999b815.
TEST=./run_suite.py with version N against a dummy project and check
for bugs that are filed
TEST=./run_suite.py with version N+1 and check that comments are filed
BUG=chromium-os:29513
Change-Id: I55c72155afba5ee87bedd137d560bde2d03d2cb2
Reviewed-on: https://gerrit.chromium.org/gerrit/41763
Commit-Queue: Alex Miller <milleral@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
Tested-by: Alex Miller <milleral@chromium.org>
diff --git a/server/cros/dynamic_suite/common.py b/server/cros/dynamic_suite/common.py
new file mode 100644
index 0000000..6a6c620
--- /dev/null
+++ b/server/cros/dynamic_suite/common.py
@@ -0,0 +1,8 @@
+import os, sys
+dirname = os.path.dirname(sys.modules[__name__].__file__)
+autotest_dir = os.path.abspath(os.path.join(dirname, "../../.."))
+client_dir = os.path.join(autotest_dir, "client")
+sys.path.insert(0, client_dir)
+import setup_modules
+sys.path.pop(0)
+setup_modules.setup(base_path=autotest_dir, root_module_name="autotest_lib")