Source-Changes-HG archive

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

[src/trunk]: src/tests/sbin/gpt Skip the "migrate" test on architectures not ...



details:   https://anonhg.NetBSD.org/src/rev/048713e1fab5
branches:  trunk
changeset: 822491:048713e1fab5
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Mar 22 19:13:40 2017 +0000

description:
Skip the "migrate" test on architectures not natively using MBR, it
can not work there.

diffstat:

 tests/sbin/gpt/t_gpt.sh |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 55c5d9f6bb62 -r 048713e1fab5 tests/sbin/gpt/t_gpt.sh
--- a/tests/sbin/gpt/t_gpt.sh   Wed Mar 22 18:17:42 2017 +0000
+++ b/tests/sbin/gpt/t_gpt.sh   Wed Mar 22 19:13:40 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_gpt.sh,v 1.15 2016/03/08 08:04:48 joerg Exp $
+# $NetBSD: t_gpt.sh,v 1.16 2017/03/22 19:13:40 martin Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -293,6 +293,10 @@
 }
 
 migrate_disklabel_body() {
+       if [ $( sysctl -n kern.rawpartition ) -ne 3 ]; then
+               atf_skip "This test is specific to architectures using MBR"
+       fi
+
        prepare
        silence fdisk -fi "$disk"
        silence fdisk -fu0s "169/63/$((size / 10))" "$disk"



Home | Main Index | Thread Index | Old Index