Fixup escaping for selective tests.

pull/1682/head
Mathijs de Bruin 2025-05-20 13:34:45 +01:00
rodzic 0c6a035be8
commit ede0c0a015
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -515,12 +515,12 @@ run_tests(){
if [[ $test_type = "frontend" || $test_type = "all" ]]; then
echo -e "\033[1mRunning frontend tests\033[0m"
run "npm run test $@"
run "npm run test $*"
fi
if [[ $test_type = "backend" || $test_type = "all" ]]; then
echo -e "\033[1mRunning backend tests\033[0m"
run "python manage.py test $@"
run "python manage.py test $*"
fi
if [[ $test_type = "all" ]]; then
@ -530,7 +530,8 @@ run_tests(){
else
environment_check
echo "Running tests in webapp container"
run "$docker_compose exec webapp /bin/bash -c \"/webodm/webodm.sh test $@\""
test_command="/webodm/webodm.sh test $*"
run "$docker_compose exec webapp /bin/bash -c \"$test_command\""
fi
}