RedHatQE / polarize

GNU General Public License v3.0
2 stars 2 forks source link

When lein compile is run, it can only use the default config file #58

Open rarebreed opened 7 years ago

rarebreed commented 7 years ago

This problem was seen in this job:

https://rhsm-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/QE-RHEL7.4/job/rhsm-rhel-7.4-x86_64-Tier1Tests/57/console

Somehow the default config file had some bad data in it and when lein compile ran, it used the default config in ~/.polarize/xml-config.xml instead of the config in $WORKSPACE/xml-config.xml. This is because unless the project.clj file is edited, we can't pass in the -Dpolarize.config=/path/to/config symbol to the JVM.

to solve this, have the TestDefinitionProcessor or XMLConfig class look for an environment variable called POLARIZE_CONFIG=/path/to/config.xml