Module Name: src Committed By: kre Date: Mon Nov 21 16:06:00 UTC 2022
Modified Files: src/tests/sbin/gpt: t_gpt.sh Log Message: Adapt to recent gpt(8) change which now issues a message when the secondary GPT header is moved. Do it this way rather than just using -q to suppress the message, so the test verifies that the appropriate action was taken. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 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.16 src/tests/sbin/gpt/t_gpt.sh:1.17 --- src/tests/sbin/gpt/t_gpt.sh:1.16 Wed Mar 22 19:13:40 2017 +++ src/tests/sbin/gpt/t_gpt.sh Mon Nov 21 16:06:00 2022 @@ -1,4 +1,4 @@ -# $NetBSD: t_gpt.sh,v 1.16 2017/03/22 19:13:40 martin Exp $ +# $NetBSD: t_gpt.sh,v 1.17 2022/11/21 16:06:00 kre Exp $ # # Copyright (c) 2015 The NetBSD Foundation, Inc. # All rights reserved. @@ -239,7 +239,7 @@ resize_2part_head() { resize_2part_body() { prepare_2part zerodd seek="$newsize" count=1 - silence gpt resizedisk "$disk" + match 'Moving secondary GPT header' gpt resizedisk "$disk" file "$src/gpt.resizedisk.show.normal" gpt show "$disk" match "$(partresmsg 2 1058 19390)" gpt resize -i 2 "$disk" file "$src/gpt.resizepart.show.normal" gpt show "$disk"