tests: xbps-rindex/add: rework some tests to use xbps-query -s rather than -Ro.
This commit is contained in:
parent
1531e26ac0
commit
5c8c7b1172
@ -21,10 +21,12 @@ update_body() {
|
|||||||
xbps-rindex -a *.xbps
|
xbps-rindex -a *.xbps
|
||||||
atf_check_equal $? 0
|
atf_check_equal $? 0
|
||||||
cd ..
|
cd ..
|
||||||
result="$(xbps-query -r root -C empty.conf --repository=some_repo -o \*)"
|
result="$(xbps-query -C empty.conf --repository=some_repo -s '')"
|
||||||
expected="foo-1.1_1: /file00 (some_repo)"
|
expected="[-] foo-1.1_1 foo pkg"
|
||||||
rv=0
|
rv=0
|
||||||
if [ "$result" != "$expected" ]; then
|
if [ "$result" != "$expected" ]; then
|
||||||
|
echo "result: $result"
|
||||||
|
echo "expected: $expected"
|
||||||
rv=1
|
rv=1
|
||||||
fi
|
fi
|
||||||
atf_check_equal $rv 0
|
atf_check_equal $rv 0
|
||||||
@ -47,10 +49,12 @@ revert_body() {
|
|||||||
xbps-rindex -a *.xbps
|
xbps-rindex -a *.xbps
|
||||||
atf_check_equal $? 0
|
atf_check_equal $? 0
|
||||||
cd ..
|
cd ..
|
||||||
result="$(xbps-query -r root -C empty.conf --repository=some_repo -o \*)"
|
result="$(xbps-query -C empty.conf --repository=some_repo -s '')"
|
||||||
expected="foo-1.0_1: /file00 (some_repo)"
|
expected="[-] foo-1.0_1 foo pkg"
|
||||||
rv=0
|
rv=0
|
||||||
if [ "$result" != "$expected" ]; then
|
if [ "$result" != "$expected" ]; then
|
||||||
|
echo "result: $result"
|
||||||
|
echo "expected: $expected"
|
||||||
rv=1
|
rv=1
|
||||||
fi
|
fi
|
||||||
atf_check_equal $rv 0
|
atf_check_equal $rv 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user