From 131e2615a55b60040b8012b71c4dba92a9bb2ec6 Mon Sep 17 00:00:00 2001 From: alianides Date: Thu, 18 Jul 2024 21:06:18 +0000 Subject: [PATCH] set directory for k3s command --- .github/workflows/run-integrationTests-python.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-integrationTests-python.yaml b/.github/workflows/run-integrationTests-python.yaml index b29b0a7..9fc71fb 100644 --- a/.github/workflows/run-integrationTests-python.yaml +++ b/.github/workflows/run-integrationTests-python.yaml @@ -108,14 +108,14 @@ jobs: echo "Running: docker exec ${DEV_CONTAINER_NAME} bash -c \"/spacefx-dev/debugShim-deploy.sh --debug_shim ${{ inputs.app_name }} --python_file /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py --disable_plugin_configs --port 5678\"" docker exec ${DEV_CONTAINER_NAME} bash -c "/spacefx-dev/debugShim-deploy.sh --debug_shim ${{ inputs.app_name }} --python_file /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py --disable_plugin_configs --port 5678" & - echo "k3s kubectl exec -n payload-app deploy/${{ inputs.app_name }} -- bash -c \"python3 /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py\" &" + echo "k3s kubectl exec -n payload-app deploy/${{ inputs.app_name }} -- bash -c \"cd /workspace/${{ inputs.app_name }}/test/integrationTests_python && /python3 /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py\" &" ( # Reroute the stdout to a file so we can uniquely identify this run trap "" HUP exec 0< /dev/null exec 1> "${PWD}/.git/logs/${{ inputs.app_name }}.log.stdout" exec 2>&1 - k3s kubectl exec -n payload-app deploy/${{ inputs.app_name }} -- bash -c "python3 /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py" + k3s kubectl exec -n payload-app deploy/${{ inputs.app_name }} -- bash -c "cd /workspace/${{ inputs.app_name }}/test/integrationTests_python && python3 /workspace/${{ inputs.app_name }}/test/integrationTests_python/integrationTest.py" ) & client_pid=$!