[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: Fix bashism in testsuite.at
From: |
Sam James |
Subject: |
[PATCH] tests: Fix bashism in testsuite.at |
Date: |
Tue, 18 Jul 2023 16:45:32 +0100 |
&> is a bashism and causes various tests to fail with /bin/sh as non-bash
(e.g. dash). Use the same pattern the rest of the file uses instead of &>.
Signed-off-by: Sam James <sam@gentoo.org>
---
tests/testsuite.at | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 44ae773b..3a98f865 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -133,7 +133,7 @@ m4_if([$2],,,&& genfile --file [$1]/[$2]) || AT_SKIP_TEST])
dnl Skip test when utility does not return expected return value
m4_define([AT_CHECK_UTIL],[
- $1 &> /dev/null
+ $1 > /dev/null 2>&1
if test "$?" != $2; then
AT_SKIP_TEST
fi
--
2.41.0
- [PATCH] tests: Fix bashism in testsuite.at,
Sam James <=