diff options
author | Fam Zheng <famz@redhat.com> | 2016-09-21 11:49:26 +0800 |
---|---|---|
committer | Fam Zheng <famz@redhat.com> | 2016-09-23 11:48:32 +0800 |
commit | ec960b9a73f48b8b0bc7d5d31a173e90bd38a290 (patch) | |
tree | fb5061a145faeff25e2ff394ece2a900437fd81b /tests/docker/run | |
parent | 9445c28ec3753470554790debc6ac12609c3b733 (diff) | |
download | qemu-ec960b9a73f48b8b0bc7d5d31a173e90bd38a290.zip qemu-ec960b9a73f48b8b0bc7d5d31a173e90bd38a290.tar.gz qemu-ec960b9a73f48b8b0bc7d5d31a173e90bd38a290.tar.bz2 |
docker: Support showing environment information
Add a make variable SHOW_ENV. When it's set to non empty, print the
package information and environment variables.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1474429768-25027-8-git-send-email-famz@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/docker/run')
-rwxr-xr-x | tests/docker/run | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/docker/run b/tests/docker/run index d85d49a..ed7dd31 100755 --- a/tests/docker/run +++ b/tests/docker/run @@ -40,6 +40,17 @@ for p in dtc pixman; do fi done +if test -n "$SHOW_ENV"; then + if test -f /packages.txt; then + echo "Packages installed:" + cat /packages.txt + echo + fi + echo "Environment variables:" + env + echo +fi + export QEMU_SRC="$TEST_DIR/src" cd "$QEMU_SRC/tests/docker" |