tests: fix test to check for the correct exit status

Previously xbps just ignored hold packages, now it will exit
with an error code in case there is a dependency conflict
with a held dependency since it would previously result
in inconsistent dependency state.
This commit is contained in:
Duncan Overbruck 2021-03-19 13:56:48 +01:00
parent fccf3d79f0
commit a4063763c8
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -98,7 +98,7 @@ update_pkg_with_held_dep_body() {
atf_check_equal $? 0 atf_check_equal $? 0
xbps-install -r root -C empty.conf --repository=$PWD -d -yv pkginst xbps-install -r root -C empty.conf --repository=$PWD -d -yv pkginst
atf_check_equal $? 0 atf_check_equal $? 19
} }
atf_test_case hold_update_revdep atf_test_case hold_update_revdep