Skip to content

Commit 69be8f2

Browse files
committed
Change to allow pulp_file functional tests to work again.
1 parent 15eb126 commit 69be8f2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

base/container_scripts/run_functional_tests.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ declare PACKAGE="$1"
44

55
set -e
66

7-
if [ $PACKAGE == "pulp_file" ]
8-
then
9-
declare PACKAGE="pulpcore"
10-
fi
11-
127
declare PROJECT="${PACKAGE//-/_}"
138

149
function check_pytest () {
@@ -41,9 +36,14 @@ EOF
4136
}
4237
}
4338

44-
cd "/src/$PACKAGE/"
39+
if [[ ${PACKAGE} == "pulp_file" || ${PACKAGE} == "pulp_certguard" ]]
40+
then
41+
cd "/src/pulpcore/"
42+
else
43+
cd "/src/${PACKAGE}/"
44+
fi
4545

4646
check_pytest
4747
check_client
4848

49-
sudo -u pulp -E pytest -r sx --rootdir=/var/lib/pulp --color=yes --pyargs "$PROJECT.tests.functional" "${@:2}"
49+
sudo -u pulp -E pytest -r sx --rootdir=/var/lib/pulp --color=yes --pyargs "${PROJECT}.tests.functional" "${@:2}"

0 commit comments

Comments
 (0)