Skip to content

Commit c5112f4

Browse files
committed
tests: cleanup unpacked_dep test
1 parent a3e49b0 commit c5112f4

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

tests/xbps/xbps-install/behaviour_tests.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,17 @@ unpacked_dep_head() {
9595

9696
unpacked_dep_body() {
9797
mkdir -p some_repo pkg_A pkg_B
98+
9899
cd some_repo
99-
xbps-create -A noarch -n A-1.0_1 -s "A pkg" ../pkg_A
100-
atf_check_equal $? 0
101-
xbps-create -A noarch -n B-1.0_1 -s "B pkg" -D "A>=0" ../pkg_B
102-
atf_check_equal $? 0
103-
xbps-rindex -d -a $PWD/*.xbps
104-
atf_check_equal $? 0
100+
atf_check -o ignore -- xbps-create -A noarch -n A-1.0_1 -s "A pkg" ../pkg_A
101+
atf_check -o ignore -- xbps-create -A noarch -n B-1.0_1 -s "B pkg" -D "A>=0" ../pkg_B
102+
atf_check -o ignore -- xbps-rindex -a $PWD/*.xbps
105103
cd ..
106-
xbps-install -r root -C empty.conf --repository=$PWD/some_repo -yU A
107-
atf_check_equal $? 0
108-
res=$(xbps-install -r root -C empty.conf --repository=$PWD/some_repo -un B | grep -Fv -e "A-1.0_1 configure" -e "B-1.0_1 install")
109-
atf_check_equal "$res" ""
104+
105+
atf_check -o ignore -- xbps-install -r root -C empty.conf --repository=$PWD/some_repo -yU A
106+
atf_check -o inline:"unpacked\n" -- xbps-query -r root -p state A
107+
atf_check -o match:"A-1.0_1 configure" -o match:"B-1.0_1 install" -- \
108+
xbps-install -r root -C empty.conf --repository=$PWD/some_repo -un B
110109
}
111110

112111
atf_test_case reinstall_unpacked_unpack_only

0 commit comments

Comments
 (0)