tests: Fix Python 3 detection on older GNU make versions
commit0ca70f19c010ccf0b10cf7cc1d2b9a87193fe787
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 6 Nov 2018 14:13:02 +0000 (6 12:13 -0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 6 Nov 2018 14:58:13 +0000 (6 14:58 +0000)
tree06172ff1912881bdbc31ee6f5636fe66ea3ff0ee
parent31eac32a8cba966c374b39bc36afdcb2eb255ed6
tests: Fix Python 3 detection on older GNU make versions

The $(SHELLSTATUS) variable requires GNU make >= 4.2, but Travis
seems to provide an older version.  Change the existing rules to
use command output instead of exit code, to make it compatible
with older GNU make versions.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/Makefile.include