travis: Don't copy files into .bm-work/
At present if TEST_PY_BD is empty the script copies various files into a directory, to no purpose. This happens because UBOOT_TRAVIS_BUILD_DIR is set before TEST_PY_BD is tested. Move the 'if' to fix this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
4e9162d519
commit
f08c8ef9b7
1 changed files with 16 additions and 16 deletions
|
@ -218,7 +218,8 @@ 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.
|
||||
- export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD};
|
||||
- if [[ "${TEST_PY_BD}" != "" ]]; then
|
||||
export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD};
|
||||
cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/;
|
||||
cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/;
|
||||
if [[ -e ~/grub_arm.efi ]]; then
|
||||
|
@ -233,7 +234,6 @@ script:
|
|||
if [[ -e ~/grub_riscv64.efi ]]; then
|
||||
cp ~/grub_riscv64.efi $UBOOT_TRAVIS_BUILD_DIR/;
|
||||
fi;
|
||||
if [[ "${TEST_PY_BD}" != "" ]]; then
|
||||
virtualenv -p /usr/bin/python3 /tmp/venv;
|
||||
. /tmp/venv/bin/activate;
|
||||
pip install -r test/py/requirements.txt;
|
||||
|
|
Loading…
Reference in a new issue