Skip to content
Snippets Groups Projects
Commit faec290f authored by Alexander Graf's avatar Alexander Graf Committed by Tom Rini
Browse files

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: default avatarAlexander Graf <agraf@suse.de>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 1bce3ad5
No related branches found
No related tags found
No related merge requests found
...@@ -86,10 +86,11 @@ script: ...@@ -86,10 +86,11 @@ script:
# never prevent any test from running. That way, we can always pass # never prevent any test from running. That way, we can always pass
# "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom
# value. # 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} ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
-k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}" -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 fi
matrix: matrix:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment