Hi Kenneth, Thanks, that’s very helpful!
Cheers, Ben > On 22/08/2015, at 9:42 pm, Kenneth Hoste <[email protected]> wrote: > > Hi Ben, > >> On 19 Aug 2015, at 02:23, Ben Roberts <[email protected]> wrote: >> >> Hi list, >> >> I’m trying to understand the difference between the “qa” and “std_qa” >> arguments in the “run_cmd_qa” method (framework: easybuild/tools/run.py). >> >> As nearly as I can tell, the only substantial difference between how “qa” >> questions are handled and how “std_qa” questions are handled is that “qa” >> takes more care to escape special characters in the text of the question >> itself. Is this the case, or is there something else going on? > > Basically the difference is that in 'qa' you provide strings as > keys/questions that have to match exactly, while in 'std_qa' you provide > regular expression patterns as keys (which are passed to re.search), so > wildcards like .* are also supported here. > > The distinction is kind of artificial, but this grew historically. There are > plans to switch to the run functions provided by vsc.utils.run at some point, > but nobody has picked up on this yet. > > Let me know whether that answers your question. > > regards, > > Kenneth

