EOX GitLab Instance

Skip to content
Snippets Groups Projects
registrar_test.sh 435 B
Newer Older
Mussab Abdalla's avatar
Mussab Abdalla committed
#!/bin/bash
product_list_file=$1
Lubomir Dolezal's avatar
Lubomir Dolezal committed
echo "inside registrar_test"

while read product; do
    docker exec -i $(docker ps -qf "name=emg-pvs_registrar") \
        python3 /registrar.py \
            --objects-prefix $product \
            --service-url $SERVICE_URL \
Fabian Schindler's avatar
Fabian Schindler committed
            --reporting-dir "/mnt/reports" \
done < "$product_list_file"
if [ $? -ne 0 ]; then echo "Pytest fail" >&2 && exit 1; fi