tests/xbps/xbps-rindex: explicitly set rootdir to unbreak tests.

This commit is contained in:
Juan RP 2014-05-31 06:31:01 +02:00
parent ec3323dcba
commit 0953980d25
2 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ update_body() {
xbps-rindex -a *.xbps xbps-rindex -a *.xbps
atf_check_equal $? 0 atf_check_equal $? 0
cd .. cd ..
result="$(xbps-query -C empty.conf --repository=some_repo -o \*)" result="$(xbps-query -r root -C empty.conf --repository=some_repo -o \*)"
expected="foo-1.1_1: /file00 (some_repo)" expected="foo-1.1_1: /file00 (some_repo)"
rv=0 rv=0
if [ "$result" != "$expected" ]; then if [ "$result" != "$expected" ]; then

View File

@ -18,7 +18,7 @@ noremove_body() {
cd .. cd ..
xbps-rindex -c some_repo xbps-rindex -c some_repo
atf_check_equal $? 0 atf_check_equal $? 0
result=$(xbps-query -C empty.conf --repository=some_repo -s foo|wc -l) result=$(xbps-query -r root -C empty.conf --repository=some_repo -s foo|wc -l)
atf_check_equal ${result} 1 atf_check_equal ${result} 1
} }
@ -41,7 +41,7 @@ filesclean_body() {
cd .. cd ..
xbps-rindex -c some_repo xbps-rindex -c some_repo
atf_check_equal $? 0 atf_check_equal $? 0
result=$(xbps-query -C empty.conf --repository=some_repo -o \*) result=$(xbps-query -r root -C empty.conf --repository=some_repo -o \*)
test -z "${result}" test -z "${result}"
atf_check_equal $? 0 atf_check_equal $? 0
} }
@ -68,7 +68,7 @@ filesclean2_body() {
cd .. cd ..
xbps-rindex -c some_repo xbps-rindex -c some_repo
atf_check_equal $? 0 atf_check_equal $? 0
result="$(xbps-query -C empty.conf --repository=some_repo -o \*)" result="$(xbps-query -r root -C empty.conf --repository=some_repo -o \*)"
expected="foo-1.1_1: /file00 (some_repo)" expected="foo-1.1_1: /file00 (some_repo)"
rv=0 rv=0
if [ "$result" != "$expected" ]; then if [ "$result" != "$expected" ]; then
@ -102,7 +102,7 @@ issue19_body() {
rm some_repo/*.xbps rm some_repo/*.xbps
xbps-rindex -c some_repo xbps-rindex -c some_repo
atf_check_equal $? 0 atf_check_equal $? 0
result=$(xbps-query -C empty.conf --repository=some_repo -s foo) result=$(xbps-query -r root -C empty.conf --repository=some_repo -s foo)
test -z "${result}" test -z "${result}"
atf_check_equal $? 0 atf_check_equal $? 0
} }