From 1fdc7ac473dea333a5ca3e36e0d8811c7f6c0556 Mon Sep 17 00:00:00 2001 From: "Mahadik, Mukul Chandrakant" Date: Thu, 11 Jul 2024 13:26:43 -0700 Subject: [PATCH] Reverting changes made for testcases --- docker-compose.automated-tests.yml | 3 +-- manager/Dockerfile | 2 -- manager/test-exit-code.sh | 11 ----------- 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 manager/test-exit-code.sh diff --git a/docker-compose.automated-tests.yml b/docker-compose.automated-tests.yml index 51bd75b0..aacfa9ff 100644 --- a/docker-compose.automated-tests.yml +++ b/docker-compose.automated-tests.yml @@ -17,7 +17,6 @@ services: environment: - MQTT_SERVER_ADDRESS=mqtt-server working_dir: /ext/source/tests - # entrypoint: "sh ./run-test.sh" - entrypoint: "sh ./test-exit-code.sh failure" + entrypoint: "sh ./run-test.sh" sysctls: - net.ipv6.conf.all.disable_ipv6=0 diff --git a/manager/Dockerfile b/manager/Dockerfile index 85fce46c..b1605f25 100644 --- a/manager/Dockerfile +++ b/manager/Dockerfile @@ -23,6 +23,4 @@ COPY device_model_storage_maeve_sp1.db ./dist/share/everest/modules/OCPP201/devi COPY run-test.sh /ext/source/tests/run-test.sh -COPY test-exit-code.sh /ext/source/tests/test-exit-code.sh - LABEL org.opencontainers.image.source=https://github.com/everest/everest-demo diff --git a/manager/test-exit-code.sh b/manager/test-exit-code.sh deleted file mode 100644 index 3776fd03..00000000 --- a/manager/test-exit-code.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -TEST_TYPE=$1 -exit_code=0 -if [ "$TEST_TYPE" == "success" ]; then - exit_code=0 -elif [ "$TEST_TYPE" == "failure" ]; then - exit_code=1 -fi - -echo "Exit Code from test-exit-code.sh: $exit_code" -exit $exit_code \ No newline at end of file