diff options
author | Ilya Maximets <i.maximets@samsung.com> | 2018-12-20 20:33:44 +0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-12-20 10:12:57 -0800 |
commit | e2f4b46b4f93f371685632fc16cd3e260031a015 (patch) | |
tree | b7a4671317c2f344bbc8816ca2fc10d5c163cdb7 /tests | |
parent | bdc000b2aad5b303bbee5cb848f2ea8937e8c283 (diff) | |
download | openvswitch-e2f4b46b4f93f371685632fc16cd3e260031a015.tar.gz |
ovs-macros.at: Hide 'exec -a' checking from user.
Messages like 'exec: -a: not found' are a bit annoying.
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ovs-macros.at | 2 |
1 files changed, 1 insertions, 1 deletions
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 "$@") } |