tests/libvm: write rpm build logs to file
The output from `rpmbuild` makes test results harder to comb through when debugging. Let's just dump all that to file and only output it if something goes wrong. Closes: #1212 Approved by: cgwalters
This commit is contained in:
parent
812daf3902
commit
1ef259ed76
@ -347,14 +347,20 @@ vm_assert_status_jq() {
|
||||
|
||||
# Like build_rpm, but also sends it to the VM
|
||||
vm_build_rpm() {
|
||||
build_rpm "$@"
|
||||
if ! build_rpm "$@" &> build.txt; then
|
||||
cat build.txt
|
||||
assert_not_reached "failed to build RPM"
|
||||
fi
|
||||
vm_send_test_repo
|
||||
}
|
||||
|
||||
# Like vm_build_rpm but takes a yumrepo mode
|
||||
vm_build_rpm_repo_mode() {
|
||||
mode=$1; shift
|
||||
build_rpm "$@"
|
||||
if ! build_rpm "$@" &> build.txt; then
|
||||
cat build.txt
|
||||
assert_not_reached "failed to build RPM"
|
||||
fi
|
||||
vm_send_test_repo $mode
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user