Re-submit ctest refactoring as it didn't actually introduce more flakiness.
Original commit message:
Re-factor and move out generating update payloads to its own program.
The main goal of this is to refactor and redesign out the generating
test payloads out of the au_test_harness into its own module that can
run in parallel without other issues (can also run in parallel without
tripping on the AU timeout bug we've been seeing). Now that we're moving
to local_archive, I'm removing all the old get update code and using the
local archive.
This reverts commit 3b77966470c8f0e0dc6bbc5d57c526cc0fa8e3ce.
BUG=chromium-os:19479
TEST=Ran ctest a lot. With /var/www/archive/<build> loaded and without.
With cache set and without (so signed keys).
Change-Id: I85db9eeb3ae5997257e561645c543cb758db9e22
Reviewed-on: http://gerrit.chromium.org/gerrit/8275
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
diff --git a/lib/constants.py b/lib/constants.py
index 7111b0e..c6ad342 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -6,7 +6,9 @@
_TEST_LIB_PATH = os.path.realpath(__file__)
+CROS_PLATFORM_ROOT = os.path.join(os.path.dirname(_TEST_LIB_PATH), '..', '..')
+
SOURCE_ROOT = os.path.join(
- os.path.dirname(_TEST_LIB_PATH), '..', '..', '..', '..')
+ os.path.dirname(_TEST_LIB_PATH), '..', '..', '..', '..')
CROSUTILS_LIB_DIR = os.path.join(SOURCE_ROOT, 'src/scripts/lib')