Skip to content
Snippets Groups Projects
Commit 7606023e authored by Graziano Scalamera's avatar Graziano Scalamera
Browse files

Fix test job

parent d37897b4
No related branches found
No related tags found
1 merge request!1Test ci
Pipeline #1595 failed with stages
in 2 minutes and 35 seconds
......@@ -45,9 +45,6 @@ build_job:
configure_and_run_job:
stage: conf
before_script:
#TODO: remove procps use for ps
- sudo apt update && sudo apt -y --no-install-recommends install libboost-thread-dev procps
script:
- sleep 10
- /usr/local/bin/DataBaseds 2 -ORBendPoint giop:tcp::10000 &
......@@ -55,12 +52,8 @@ configure_and_run_job:
- exit_code=2
- json2tango -w -a -u ./test/ah_config.json || exit_code=$?
# json2tango returns 2 if values written to DB
- if [ ${exit_code} -ne 2 ]; then echo "It failed!" ; else echo "It worked!"; fi
- if [ ${exit_code} -ne 2 ]; then echo "Tango DB configuration failed!" ; else echo "Tango DB configuration succedeed!"; fi
- sleep 5
- ./build/alarm-handler-srv 01 &
- sleep 10
- ps -ef | grep alarm-handler-srv | grep -v grep
- sleep 10
needs: ["build_job"]
services:
- name: nexus.engageska-portugal.pt/ska-docker/tango-db
......@@ -72,7 +65,9 @@ test_job:
#TODO: remove procps use for ps
- sudo apt update && sudo apt -y --no-install-recommends install libboost-thread-dev procps
script:
- ps -ef | grep alarm-handler-srv | grep -v grep
- ./build/alarm-handler-srv 01 &
- sleep 10
- ps -ef | grep alarm-handler-srv | grep -v grep
- sleep 5
needs: ["configure_and_run_job"]
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment