Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
#46 automatically pass through TEST_ env vars to arm container
Browse files Browse the repository at this point in the history
  • Loading branch information
edbordin committed Nov 22, 2020
1 parent 345ad4a commit 1e702d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/test/test_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ then
fi

# QUS allows us to easily run an arm container (uses QEMU behind the scenes)
sudo docker run --rm --privileged aptman/qus -s -- -p $QUS_ARCH
docker run --env VERSION -v `pwd`:/fpga-toolchain -w /fpga-toolchain \
# sudo docker run --rm --privileged aptman/qus -s -- -p $QUS_ARCH
docker run --env VERSION $(awk 'BEGIN{for(v in ENVIRON) if (v ~ /TEST_/) { print "--env "v }}') \
-v `pwd`:/fpga-toolchain -w /fpga-toolchain \
$DOCKER_IMAGE /fpga-toolchain/scripts/test/run_tests.sh $ARCH
else
./scripts/test/run_tests.sh $ARCH
Expand Down

0 comments on commit 1e702d9

Please sign in to comment.