Skip the "migrate" test on architectures not natively using MBR, it

can not work there.
This commit is contained in:
martin 2017-03-22 19:13:40 +00:00
parent de1e0dfd01
commit defea524bf
1 changed files with 5 additions and 1 deletions

View File

@ -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"