From ea838d15da20e8e5cf9f78b1bd06728c1607f575 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 8 Dec 2014 11:55:32 -0500 Subject: unittests: cut over to the new wrapper Now that we have a wrapper to deal with the namespace munging, we can clean up all our unittests. This means: - add a wrapper symlink for all the unittests - drop the +x bits on the direct .py file - drop the shebang on the direct .py file - delete the manual sys.path munging - move the mock import to the common system import path - delete unused os/sys imports - delete most manual calls to cros_test_lib.main - add a main() for the few complicated cros_test_lib.main calls BUG=chromium:219660 TEST=ran all the unittests Change-Id: I85614c301e48c86a0ca4201c2b60349d2d488e52 Reviewed-on: https://chromium-review.googlesource.com/233832 Reviewed-by: David James Reviewed-by: Don Garrett Tested-by: Mike Frysinger Commit-Queue: Mike Frysinger --- cbuildbot/stages/completion_stages_unittest | 1 + 1 file changed, 1 insertion(+) create mode 120000 cbuildbot/stages/completion_stages_unittest (limited to 'cbuildbot/stages/completion_stages_unittest') diff --git a/cbuildbot/stages/completion_stages_unittest b/cbuildbot/stages/completion_stages_unittest new file mode 120000 index 000000000..ef3e37b67 --- /dev/null +++ b/cbuildbot/stages/completion_stages_unittest @@ -0,0 +1 @@ +../../scripts/wrapper.py \ No newline at end of file -- cgit v1.2.3