]> git.sur5r.net Git - u-boot/commitdiff
Travis: Expose build dir as variable
authorAlexander Graf <agraf@suse.de>
Thu, 17 Nov 2016 17:31:03 +0000 (18:31 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 26 Nov 2016 20:50:52 +0000 (15:50 -0500)
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>
.travis.yml

index 3d7fffe0bd3e070a231e1a48a1d1aac3a66ef2d3..acb41ea354fd4fc8f6ef96f4eedf8878710228ff 100644 (file)
@@ -86,10 +86,11 @@ script:
  # never prevent any test from running. That way, we can always pass
  # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom
  # value.
- - if [[ "${TEST_PY_BD}" != "" ]]; then
+ - export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD};
+   if [[ "${TEST_PY_BD}" != "" ]]; then
      ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
        -k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}"
-       --build-dir `cd .. && pwd`/.bm-work/${TEST_PY_BD};
+       --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
    fi
 
 matrix: