chore(ci): Update scripts for better handling test cases and debugging

- Update .gitlab-ci.yml to use 'jq' in addition to 'bash' for improved functionality.
- Modify flags in .util/run_tests.sh
This commit is contained in:
Yves-Marie Haussonne 2024-10-10 15:33:48 +02:00
parent 18fdb914a5
commit c80b57db06
2 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@ default:
- docker:27-dind - docker:27-dind
before_script: before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin - echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
- apk --no-cache add bash - apk --no-cache add bash jq
stages: stages:
- build - build
@ -29,7 +29,7 @@ test_harness:
stage: test stage: test
script: script:
- echo "Starting tests" - echo "Starting tests"
- .util/run_tests.sh -i $CLIENT_CONTAINER_GITSHA_IMAGE --docker -D - .util/run_tests.sh -i $CLIENT_CONTAINER_GITSHA_IMAGE --docker -d -D
build_opengl: build_opengl:
stage: build stage: build

View File

@ -100,15 +100,15 @@ parse_params() {
eval set -- ${args} eval set -- ${args}
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
case $1 in case $1 in
-f | --failfast) -f|--failfast)
failfast="true" failfast="true"
shift shift
;; ;;
-k | --keep-server) -k|--keep-server)
stop_server="false" stop_server="false"
shift shift
;; ;;
-h | --help) -h|--help)
usage usage
shift shift
;; ;;
@ -120,11 +120,11 @@ parse_params() {
docker_cmd="podman" docker_cmd="podman"
shift shift
;; ;;
-D | --show-debug) -D|--show-debug)
show_debug="true" show_debug="true"
shift shift
;; ;;
-d | --debug) -d|--debug)
debug=true debug=true
shift shift
;; ;;