tests/tcg: Replace /bin/true by true (required on macOS)
PATCH 1/1 tests/tcg: Replace /bin/true by true (required on macOS)
/bin/true is missing on macOS, but simply "true" is available as a shell builtin.
Signed-off-by Stefan Weil <[email protected]>
---
A similar change might be needed for tests/qemu-iotests.
Regards,
Stefan
tests/tcg/Makefile.qemu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/tcg/Makefile.qemu +2 -2
@@ -90,11 +90,11 @@ run-guest-tests: guest-tests else guest-tests: - $(call quiet-command, /bin/true, "BUILD", \ + $(call quiet-command, true, "BUILD", \ "$(TARGET) guest-tests SKIPPED") run-guest-tests: - $(call quiet-command, /bin/true, "RUN", \ + $(call quiet-command, true, "RUN", \ "tests for $(TARGET) SKIPPED") endif
Signature · 1 line
2.24.3 (Apple Git-128)
Quoted 5 lines · Stefan Weil
/bin/trueis missing on macOS, but simply "true" is available as a shell builtin.Signed-off-by Stefan Weil <[email protected]>---
Quoted 7 lines
A similar change might be needed for tests/qemu-iotests.
Regards,
Stefantests/tcg/Makefile.qemu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 4 lines · Stefan Weil
/bin/trueis missing on macOS, but simply "true" is available as a shell builtin.Signed-off-by Stefan Weil <[email protected]>
It's also in /usr/bin/true if you happen to need a real executable rather than a builtin. Either way we shouldn't be hardcoding the path here.
Reviewed-by Peter Maydell <[email protected]>
thanks
-- PMM
Quoted 3 lines · Stefan Weil
/bin/trueis missing on macOS, but simply "true" is available as a shell builtin.Signed-off-by Stefan Weil <[email protected]>
Queued to testing/next, thanks.
Signature · 1 line
Alex Bennée