From eba8ca03199fb160b320d1975c96c16cddd81d4a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 8 Dec 2013 08:04:39 +0100 Subject: [PATCH] tests/xbps/xbps-rindex: fix tests after 4403caa (only use test repo). --- tests/xbps/xbps-rindex/add_test.sh | 2 +- tests/xbps/xbps-rindex/clean_test.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/xbps/xbps-rindex/add_test.sh b/tests/xbps/xbps-rindex/add_test.sh index 158ca028..90a29a0e 100644 --- a/tests/xbps/xbps-rindex/add_test.sh +++ b/tests/xbps/xbps-rindex/add_test.sh @@ -21,7 +21,7 @@ update_body() { xbps-rindex -a *.xbps atf_check_equal $? 0 cd .. - result="$(xbps-query --repository=some_repo -o \*)" + result="$(xbps-query -C empty.conf --repository=some_repo -o \*)" expected="foo-1.1_1: /file00 (some_repo)" rv=0 if [ "$result" != "$expected" ]; then diff --git a/tests/xbps/xbps-rindex/clean_test.sh b/tests/xbps/xbps-rindex/clean_test.sh index 303ff989..cafe276d 100644 --- a/tests/xbps/xbps-rindex/clean_test.sh +++ b/tests/xbps/xbps-rindex/clean_test.sh @@ -18,7 +18,7 @@ noremove_body() { cd .. xbps-rindex -c some_repo atf_check_equal $? 0 - result=$(xbps-query --repository=some_repo -s foo|wc -l) + result=$(xbps-query -C empty.conf --repository=some_repo -s foo|wc -l) atf_check_equal ${result} 1 } @@ -41,7 +41,7 @@ filesclean_body() { cd .. xbps-rindex -c some_repo atf_check_equal $? 0 - result=$(xbps-query --repository=some_repo -o \*) + result=$(xbps-query -C empty.conf --repository=some_repo -o \*) test -z "${result}" atf_check_equal $? 0 } @@ -68,7 +68,7 @@ filesclean2_body() { cd .. xbps-rindex -c some_repo atf_check_equal $? 0 - result="$(xbps-query --repository=some_repo -o \*)" + result="$(xbps-query -C empty.conf --repository=some_repo -o \*)" expected="foo-1.1_1: /file00 (some_repo)" rv=0 if [ "$result" != "$expected" ]; then @@ -102,7 +102,7 @@ issue19_body() { rm some_repo/*.xbps xbps-rindex -c some_repo atf_check_equal $? 0 - result=$(xbps-query --repository=some_repo -s foo) + result=$(xbps-query -C empty.conf --repository=some_repo -s foo) test -z "${result}" atf_check_equal $? 0 }