Index: client/deps/chrome_test/chrome_test.py |
diff --git a/client/deps/chrome_test/chrome_test.py b/client/deps/chrome_test/chrome_test.py |
index a876836bd39ba220acb9ad778d64ebb807844d05..a84662215fd5ea9cc086fdfcca0f1de9f9d07b28 100755 |
--- a/client/deps/chrome_test/chrome_test.py |
+++ b/client/deps/chrome_test/chrome_test.py |
@@ -10,10 +10,11 @@ from autotest_lib.client.bin import utils |
version = 1 |
def setup(top_dir): |
- if os.environ['CHROME_ORIGIN'] != 'LOCAL_SOURCE': |
+ if 'CHROME_ORIGIN' not in os.environ.keys() or \ |
+ os.environ['CHROME_ORIGIN'] != 'LOCAL_SOURCE': |
logging.info('Skipping Chrome test resource setup for non-local builds') |
return |
- |
+ |
chrome_test_files = os.environ['SYSROOT'] + '/usr/local/autotest-chrome' |
logging.info('Configuring chrome test resources in %s' % top_dir) |
testsrc_dir = top_dir + '/test_src' |