From 4b9fceb9fdafeff02db2b7c2dd5355e8071d2c01 Mon Sep 17 00:00:00 2001 From: Sean McCann Date: Fri, 19 Apr 2024 14:04:43 +1200 Subject: [PATCH] print statement and fixed the path to profile directory --- scripts/steps/run_qgis_tests.sh | 2 +- scripts/steps/setup_qgis_plugin.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/steps/run_qgis_tests.sh b/scripts/steps/run_qgis_tests.sh index ffbc539..9c0a11d 100755 --- a/scripts/steps/run_qgis_tests.sh +++ b/scripts/steps/run_qgis_tests.sh @@ -9,5 +9,5 @@ echo >&2 "" # docker exec --privileged qgis /bin/sh -c "cd / && ls -l" # docker exec --privileged qgis /bin/sh -c "cd /tests_directory && ls -l -R" -chmod +x /tests_directory/$PLUGIN_NAME/test/run_tests.sh +docker exec --privileged /bin/sh chmod +x /tests_directory/$PLUGIN_NAME/test/run_tests.sh docker exec --privileged -w /tests_directory/$PLUGIN_NAME qgis /bin/sh /tests_directory/$PLUGIN_NAME/test/run_tests.sh \ No newline at end of file diff --git a/scripts/steps/setup_qgis_plugin.sh b/scripts/steps/setup_qgis_plugin.sh index 7ae2ae8..2b83098 100755 --- a/scripts/steps/setup_qgis_plugin.sh +++ b/scripts/steps/setup_qgis_plugin.sh @@ -11,6 +11,9 @@ PROFILE_DIR=/root/.local/share/QGIS/QGIS3/profiles/default # docker exec --privileged qgis /bin/sh -c "cd / && ls -l" # docker exec --privileged qgis /bin/sh -c "cd /tests_directory && ls -l -R" -docker exec qgis mkdir -p $PROFILE_DIR/QGIS-AIMS-Plugin -docker exec qgis cp /tests_directory/QGIS-AIMS-Plugin/test/aims_test_config.ini $PROFILE_DIR/aims/aimsConfig.ini +docker exec --privileged qgis mkdir -p $PROFILE_DIR/aims +docker exec --privileged qgis cp /tests_directory/QGIS-AIMS-Plugin/test/aims_test_config.ini $PROFILE_DIR/aims/aimsConfig.ini + +docker exec --privileged qgis /bin/sh -c "cd /$PROFILE_DIR && ls -l -R" + docker exec --privileged qgis bash -f /usr/bin/qgis_setup.sh "QGIS-AIMS-Plugin"