You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
atf_check -s exit:0 -o ignore -e match:"^WARNING: The 'xbps-1\.0_1' package is out of date, 'xbps-1\.1_1' is available\.$" -- xbps-install -r root --repository=repo -yn B
atf_check -s exit:0 -o ignore -e match:"^WARNING: The 'xbps-git-1\.0_1' package is out of date, 'xbps-git-1\.1_1' is available\.$" -- xbps-install -r root --repository=repo -yn B
xbps-install -r root --repository=$PWD/repo -yd xbps bar
21
24
atf_check_equal $? 0
22
25
23
26
out=$(xbps-query -r root -p pkgver xbps)
@@ -26,13 +29,17 @@ update_xbps_body() {
26
29
cd repo
27
30
xbps-create -A noarch -n xbps-1.1_1 -s "xbps pkg" ../xbps
28
31
atf_check_equal $? 0
29
-
xbps-rindex -d -a $PWD/xbps-1.1_1.noarch.xbps
32
+
xbps-create -A noarch -n bar-1.1_1 -s "bar pkg" ../bar
33
+
atf_check_equal $? 0
34
+
xbps-rindex -d -a $PWD/*.xbps
30
35
atf_check_equal $? 0
31
36
cd ..
32
37
33
-
# EBUSY
34
-
xbps-install -r root --repository=$PWD/repo -yud
35
-
atf_check_equal $? 16
38
+
# Ensure warning is printed
39
+
atf_check -s exit:0 -o ignore -e match:"^WARNING: The 'xbps-1\.0_1' package is out of date, 'xbps-1\.1_1' is available\.$" -- xbps-install -r root --repository=$PWD/repo -yd bar
# first time, xbps must be updated (returns EBUSY)
91
-
xbps-install -r root --repository=$PWD/repo -yud
92
-
atf_check_equal $? 16
99
+
# first time, warning must be printed
100
+
atf_check -s exit:0 -o ignore -e match:"^WARNING: The 'xbps-1\.0_1' package is out of date, 'xbps-1\.1_1' is available\.$" -- xbps-install -r root --repository=$PWD/repo -yd bar
atf_check -s exit:0 -o ignore -e not-match:"^WARNING: The 'xbps-1\.0_1' package is out of date, 'xbps-1\.1_1' is available\.$" -- xbps-install -r root --repository=$PWD/repo -yu xbps
atf_check -s exit:0 -o ignore -e not-match:"^WARNING: The 'xbps-1\.0_1' package is out of date, 'xbps-1\.1_1' is available\.$" -- xbps-install -r root --repository=$PWD/repo -yu xbps
0 commit comments