Module Name:    src
Committed By:   martin
Date:           Mon May  4 10:57:18 UTC 2015

Modified Files:
        src/tests/net/mpls: t_ldp_regen.sh

Log Message:
Cosmetics: hide an error message from sysctl (machdep.cpu_brand is not
available on most architectures)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/net/mpls/t_ldp_regen.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/mpls/t_ldp_regen.sh
diff -u src/tests/net/mpls/t_ldp_regen.sh:1.4 src/tests/net/mpls/t_ldp_regen.sh:1.5
--- src/tests/net/mpls/t_ldp_regen.sh:1.4	Mon Sep  1 06:38:35 2014
+++ src/tests/net/mpls/t_ldp_regen.sh	Mon May  4 10:57:17 2015
@@ -1,4 +1,4 @@
-# $NetBSD: t_ldp_regen.sh,v 1.4 2014/09/01 06:38:35 gson Exp $
+# $NetBSD: t_ldp_regen.sh,v 1.5 2015/05/04 10:57:17 martin Exp $
 #
 # Copyright (c) 2013 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -158,7 +158,7 @@ docleanup() {
 
 ldp_regen_body() {
 
-        if sysctl machdep.cpu_brand | grep QEMU >/dev/null 2>&1
+        if sysctl machdep.cpu_brand 2>/dev/null | grep QEMU >/dev/null 2>&1
 	then
 	    atf_skip "unreliable under qemu, skip until PR kern/43997 fixed"
 	fi

Reply via email to