aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Graf2016-11-17 11:31:03 -0600
committerTom Rini2016-11-26 14:50:52 -0600
commitfaec290f7e1fe392cd54e3e5ecc282dfc94349e3 (patch)
treecfb589d2ef26f3ee10e4d853f21cfb7a14a3ef7d /.travis.yml
parent1bce3ad5f32532de3b354a5883cffbb2606ce19a (diff)
downloadu-boot-faec290f7e1fe392cd54e3e5ecc282dfc94349e3.tar.gz
u-boot-faec290f7e1fe392cd54e3e5ecc282dfc94349e3.tar.xz
u-boot-faec290f7e1fe392cd54e3e5ecc282dfc94349e3.zip
Travis: Expose build dir as variable
Some travis QEMU tests can transfer files between the build directory and the guest U-Boot instance. For that to work, both need to have access to the same directory. This patch puts the current build path into an environment variable, so that the environment generating python scripts can extract it from there and read the respective files. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 3d7fffe0bd..acb41ea354 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -86,10 +86,11 @@ script:
86 # never prevent any test from running. That way, we can always pass 86 # never prevent any test from running. That way, we can always pass
87 # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom 87 # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom
88 # value. 88 # value.
89 - if [[ "${TEST_PY_BD}" != "" ]]; then 89 - export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD};
90 if [[ "${TEST_PY_BD}" != "" ]]; then
90 ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID} 91 ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
91 -k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}" 92 -k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}"
92 --build-dir `cd .. && pwd`/.bm-work/${TEST_PY_BD}; 93 --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
93 fi 94 fi
94 95
95matrix: 96matrix: