mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-15 21:57:15 +00:00
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:
parent
8b78e1221e
commit
f0082fecb9
@ -132,6 +132,7 @@ sudo setcap cap_net_admin+ep /usr/bin/qemu-system-x86_64
|
|||||||
|
|
||||||
sudo adduser $USER kvm
|
sudo adduser $USER kvm
|
||||||
newgrp kvm << EOF
|
newgrp kvm << EOF
|
||||||
|
export RUST_BACKTRACE=1
|
||||||
cargo test --features "integration_tests"
|
cargo test --features "integration_tests"
|
||||||
EOF
|
EOF
|
||||||
RES=$?
|
RES=$?
|
||||||
|
@ -17,6 +17,7 @@ sudo adduser $USER kvm
|
|||||||
newgrp kvm << EOF || exit 1
|
newgrp kvm << EOF || exit 1
|
||||||
for f in \$(find . -name Cargo.toml -printf '%h\n' | sort -u); do
|
for f in \$(find . -name Cargo.toml -printf '%h\n' | sort -u); do
|
||||||
pushd \$f > /dev/null;
|
pushd \$f > /dev/null;
|
||||||
|
export RUST_BACKTRACE=1
|
||||||
cargo test || exit 1;
|
cargo test || exit 1;
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user