Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

Run some tests just if plugin is installed.

Merged Diego MENDEZ requested to merge feature/test_tags into develop
All threads resolved!
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -76,10 +76,12 @@ up-test-env-job:
# Remove `mac-address` and `cert` tests if plugins are not installed, to keep compatibility with Netbox_v4 branches.
- if [[ $(cat requirements.txt | grep -e mac -e cert | wc -l) != 0 ]];
then
ls "$CI_PROJECT_DIR/tests/e2e/netbox/"
rm -r "$CI_PROJECT_DIR/tests/e2e/netbox/{netbox_cert_plugin,netbox_mac_address_plugin}";
ls "$CI_PROJECT_DIR/tests/e2e/netbox/";
rm -r $CI_PROJECT_DIR/tests/e2e/netbox/{netbox_cert_plugin,netbox_mac_address_plugin};
rm -r "$CI_PROJECT_DIR/tests/robot/netbox_mac_address_plugin";
echo "Removed mac's and cert's tests.";
ls "$CI_PROJECT_DIR/tests/e2e/netbox/";
ls "$CI_PROJECT_DIR/tests/robot/";
fi
run-test-job:
Loading