fix quotes in definition of default platform macro and enhance sanity check in GATE easyblock#2645
Conversation
The final macro definition passed to the `make` command should look like `-DGC_DEFAULT_PLATFORM='\"condo\"'"`. So, I changed single quotes to double quotes.
|
so, if I understand correctly, the problem is that the current behaviour results in and running This PR gets rid of the warning and running Maybe we should additionally check the output of |
|
Yes, that's exactly the problem. In my case, warnings were actual errors and thus, the build was constantly failing. def sanity_check_step(self):
...
custom_commands = ["gjs -h | grep %s" % self.cfg['default_platform']]
super(EB_GATE, self).sanity_check_step(custom_paths=custom_paths, custom_commands=custom_commands) |
This seems to work: == 2022-01-06 13:44:06,693 easyblock.py:3387 INFO sanity check command gjs -h | grep openPBS ran successfully! (output: openmosix - condor - openPBS - xgrid
This executable is compiled with openPBS as default
-openPBSscript, os : template for an openPBS script
see the example that comes with the source code (script/openPBS.script)
GC_PBS_SCRIPT : the openPBS template script (!optionnal variable!)
gjs -numberofsplits 10 -clusterplatform openPBS -openPBSscript /somedir/script macro.mac
)but I'm not sure if easybuild will consider an empty stdout as an error in this case |
(which probably means it's falling back to openPBS anyway, but even if that's the case, this PR still makes sense to me) |
|
oh, yes, you are right. I've changed the string to |
|
Test report by @migueldiascosta Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
|
test report for |
|
lgtm @boegel if you think it's worth it, can you submit a test report for the older |
|
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 11 out of 11 (11 easyconfigs in total) |
The final macro definition passed to the
makecommand should look like-DGC_DEFAULT_PLATFORM='\"openPBS\"'and not like-DGC_DEFAULT_PLATFORM=\'openPBS\'. So, I changed the arrangement of quotes and added double quotes.