Module Name: src
Committed By: martin
Date: Wed Mar 22 19:13:40 UTC 2017
Modified Files:
src/tests/sbin/gpt: t_gpt.sh
Log Message:
Skip the "migrate" test on architectures not natively using MBR, it
can not work there.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/tests/sbin/gpt/t_gpt.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/sbin/gpt/t_gpt.sh
diff -u src/tests/sbin/gpt/t_gpt.sh:1.15 src/tests/sbin/gpt/t_gpt.sh:1.16
--- src/tests/sbin/gpt/t_gpt.sh:1.15 Tue Mar 8 08:04:48 2016
+++ src/tests/sbin/gpt/t_gpt.sh Wed Mar 22 19:13:40 2017
@@ -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"