tests: Make panics generate a backtrace

This will help pinpoint issues when debugging test failures.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-08-16 16:08:16 +01:00 committed by Sebastien Boeuf
parent 8b78e1221e
commit f0082fecb9
2 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,7 @@ sudo setcap cap_net_admin+ep /usr/bin/qemu-system-x86_64
sudo adduser $USER kvm
newgrp kvm << EOF
export RUST_BACKTRACE=1
cargo test --features "integration_tests"
EOF
RES=$?

View File

@ -17,6 +17,7 @@ sudo adduser $USER kvm
newgrp kvm << EOF || exit 1
for f in \$(find . -name Cargo.toml -printf '%h\n' | sort -u); do
pushd \$f > /dev/null;
export RUST_BACKTRACE=1
cargo test || exit 1;
popd > /dev/null;
done