syslog messages from unit tests are not useful and only litter the
system logs on build / test machines.

Signed-off-by: Ilya Maximets <i.maxim...@samsung.com>
---
 tests/ofproto-macros.at | 2 +-
 tests/ovs-macros.at     | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at
index 96219cd..a4bcc41 100644
--- a/tests/ofproto-macros.at
+++ b/tests/ofproto-macros.at
@@ -112,7 +112,7 @@ as() {
          cmd=$1; shift;
          for util in $OVS_UTILS_LIST; do
              if test "X$util" == "X$cmd"; then
-                 $cmd $OVS_TIMEOUT "$@"
+                 $cmd $OVS_UTILS_DEFAULT_OPTIONS "$@"
                  exit "$?"
              fi
          done
diff --git a/tests/ovs-macros.at b/tests/ovs-macros.at
index e3365b6..e654259 100644
--- a/tests/ovs-macros.at
+++ b/tests/ovs-macros.at
@@ -114,7 +114,7 @@ if test "$IS_WIN32" = "yes"; then
     }
 fi
 
-# Try to add a default timeout for the following control utilities:
+# Try to add a default options for the following control utilities:
 #     - ovs-vsctl
 #     - ovs-ofctl
 #     - ovs-appctl
@@ -123,11 +123,13 @@ fi
 #     - vtep-ctl
 # Set default timeout for 30 seconds.
 # This should be sufficient on all platforms.
+# Disable unwanted logging to syslog.
 OVS_TIMEOUT=30
+OVS_UTILS_DEFAULT_OPTIONS="-vsyslog:off --timeout=$OVS_TIMEOUT"
 OVS_UTILS_LIST="ovs-vsctl ovs-ofctl ovs-appctl ovn-sbctl ovn-nbctl
                 vtep-ctl ovsdb-client"
 for util in $OVS_UTILS_LIST; do
-    alias $util="$util $OVS_TIMEOUT" >/dev/null 2>&1
+    alias $util="$util $OVS_UTILS_DEFAULT_OPTIONS" >/dev/null 2>&1
 done
 
 # parent_pid PID
-- 
2.7.4

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to