[ovs-dev] [PATCH] ovs-macros.at: Hide 'exec -a' checking from user.
Ilya Maximets
i.maximets at samsung.com
Thu Dec 20 17:33:44 UTC 2018
Messages like 'exec: -a: not found' are a bit annoying.
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
tests/ovs-macros.at | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/ovs-macros.at b/tests/ovs-macros.at
index f2e6114ae..d60ec98d1 100644
--- a/tests/ovs-macros.at
+++ b/tests/ovs-macros.at
@@ -173,7 +173,7 @@ uuidfilt () {
# prints a message if a bunch of identical processes are running.
#
# Not all shells support "exec -a NAME", so test for it.
-if (exec -a myname true); then
+if (exec -a myname true 2>&1 >/dev/null); then
run_as () {
(exec -a "$@")
}
--
2.17.1
More information about the dev
mailing list