Perform variable expansion on self.requires_cmd for commands launched by REQUIRES
On vidjil#3198 we noticed that some tests were skipped because the requirement (under the REQUIRES
directive) was not met.
However this requirement is actually met!
For instance:
$ python3 should.py -v should-get-tests/stanford-json.should-get
$VIDJIL_DIR=../../../
$VIDJIL_DATA=../data/
$EXEC=vidjil-algo
$VIDJIL_DEFAULT_OPTIONS=
$LAUNCHER=
should-get-tests/stanford-json.should-get
Skipping tests as condition is not met: python $VIDJIL_DIR/tools/check_python_version.py
==> should-get-tests/stanford-json.log-get
==> should-get-tests/stanford-json.tap-get
==> skip - skip:20 total:20 tests
Summary ==> ok - skip:1 total:1 file
Summary ==> ok - skip:20 total:20 tests
However when launchign the requirement by myself:
$ python tools/check_python_version.py
$ echo $?
0
Is it a problem with the directory? From which directory is the requirement test launched?
The stderr output could be helpful