Skip to content

Commit 6a951d0

Browse files
committed
tests: fix post/purge remove-script test
1 parent ade1b76 commit 6a951d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/xbps/libxbps/shell/scripts_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ARCH="\$6"
9696
9797
echo "$1 \$@"
9898
_EOF
99-
chmod +x "$1"
99+
chmod +x "$2"
100100
}
101101

102102
atf_test_case script_action
@@ -142,9 +142,9 @@ script_action_body() {
142142
grep "^install pre A 1.1_1 yes no" out
143143
atf_check_equal $? 0
144144
grep "^remove post A 1.0_1 yes no" out
145-
atf_check_equal $? 0
145+
atf_check_equal $? 1
146146
grep "^remove purge A 1.0_1 yes no" out
147-
atf_check_equal $? 0
147+
atf_check_equal $? 1
148148
grep "^install post A 1.1_1 yes no" out
149149
atf_check_equal $? 0
150150

0 commit comments

Comments
 (0)