diff options
author | Will Drewry <drewry@google.com> | 2015-10-26 08:54:06 -0700 |
---|---|---|
committer | Will Drewry <drewry@google.com> | 2015-10-26 11:21:50 -0700 |
commit | afb306e506d03623a92d1eaace760b39ac332dc2 (patch) | |
tree | 131bcf3aaa2c8a709aeef98494282afb7faa3af9 /brunch/lib/core/product_templates.py | |
parent | 296de802e44672a5cb864d016ac70ebe334a0cd3 (diff) | |
download | bdk-afb306e506d03623a92d1eaace760b39ac332dc2.tar.gz |
brunch: first integration tests
Until we have a dedicated mock library handy, this
change introduces a basic stubbed integration test
suite for validating all python code paths operate
as expected.
- remove PYTHONPATH fiddling in brunch
- make tools easier to inject a path for
- make envsetup "set -u" clean
- add a simple end to end test script
BUG=25215287
Change-Id: Ic6c5f184ce2e0aabb935f0e051061fcfee61aed4
Diffstat (limited to 'brunch/lib/core/product_templates.py')
-rw-r--r-- | brunch/lib/core/product_templates.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/brunch/lib/core/product_templates.py b/brunch/lib/core/product_templates.py index d81045a..332e936 100644 --- a/brunch/lib/core/product_templates.py +++ b/brunch/lib/core/product_templates.py @@ -142,7 +142,7 @@ _envsetup_load() { # Make sure we're in the root of a product. # If the user explicitly exported a PRODUCT_PATH, then fail if it is wrong. - if test -n "$${PRODUCT_PATH}" && \ + if test -n "$${PRODUCT_PATH:-}" && \ ! test -e "$${PRODUCT_PATH}/.brunch_product.db"; then echo "Cannot find a product at PRODUCT_PATH: $${PRODUCT_PATH}" 1>&2 return 1 |