From defea524bf07621812d224811287c9a9253ac7ee Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 22 Mar 2017 19:13:40 +0000 Subject: [PATCH] Skip the "migrate" test on architectures not natively using MBR, it can not work there. --- tests/sbin/gpt/t_gpt.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/sbin/gpt/t_gpt.sh b/tests/sbin/gpt/t_gpt.sh index 0381313d5f3f..995a8220d7e9 100644 --- a/tests/sbin/gpt/t_gpt.sh +++ b/tests/sbin/gpt/t_gpt.sh @@ -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_head() { } 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"