Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/mpls Cosmetics: hide an error message from sysctl ...



details:   https://anonhg.NetBSD.org/src/rev/186397531535
branches:  trunk
changeset: 337954:186397531535
user:      martin <martin%NetBSD.org@localhost>
date:      Mon May 04 10:57:17 2015 +0000

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

diffstat:

 tests/net/mpls/t_ldp_regen.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a1880ab80dd8 -r 186397531535 tests/net/mpls/t_ldp_regen.sh
--- a/tests/net/mpls/t_ldp_regen.sh     Mon May 04 10:10:42 2015 +0000
+++ b/tests/net/mpls/t_ldp_regen.sh     Mon May 04 10:57:17 2015 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index