Skip to content

Commit

Permalink
Fixed reference to linux path handling in Config.py which is preventi…
Browse files Browse the repository at this point in the history
…ng the CI pipeline from reading this file.
  • Loading branch information
Sean-McCann-HG committed Apr 19, 2024
1 parent 0409bf7 commit 43ad51b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion QGIS-AIMS-Plugin/AIMSDataManager/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
# For Unit Testing, outside of QGIS, set path to your .ini file here as QgsApplication.qgisSettingsDirPath() resolves to '' if not called from QGIS
if sys.platform == 'linux':
# For testing via github actions, builds path to the repository aims_test_config.ini
AIMS_CONFIG = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'Test', 'aims_test_config.ini')
# AIMS_CONFIG = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'Test', 'aims_test_config.ini')
print(f'LINUX CI DETECTED - USING PATH: {AIMS_CONFIG}')

if AIMS_CONFIG == 'aims\\aimsConfig.ini':
if os.path.exists()
# Local testing
AIMS_CONFIG = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'Test', 'aims_test_config.ini')

Expand Down
3 changes: 0 additions & 3 deletions scripts/steps/setup_qgis_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ PROFILE_DIR=/root/.local/share/QGIS/QGIS3/profiles/default

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"

0 comments on commit 43ad51b

Please sign in to comment.