Blame SOURCES/0093-tests-Test-incomplete-resizepart-command.patch

b268e8
From 929a3bdd7a60912dd977ea79548b163a39b20568 Mon Sep 17 00:00:00 2001
b268e8
From: "Brian C. Lane" <bcl@redhat.com>
b268e8
Date: Tue, 23 Apr 2019 10:25:20 -0700
b268e8
Subject: [PATCH 93/97] tests: Test incomplete resizepart command
b268e8
b268e8
(cherry picked from commit 679da92c54c75d7fca1fd825f1d42a750d115f2d)
b268e8
b268e8
Related: rhbz#1861804
b268e8
---
b268e8
 tests/t3200-resize-partition.sh | 2 ++
b268e8
 1 file changed, 2 insertions(+)
b268e8
b268e8
diff --git a/tests/t3200-resize-partition.sh b/tests/t3200-resize-partition.sh
b268e8
index 251b545..dcf1775 100755
b268e8
--- a/tests/t3200-resize-partition.sh
b268e8
+++ b/tests/t3200-resize-partition.sh
b268e8
@@ -63,6 +63,8 @@ parted -m -s $dev u s p > out 2>&1 || fail=1
b268e8
 wait_for_dev_to_appear_ ${dev}1 || { warn_ "${dev}1 did not appear"  fail=1; }
b268e8
 sleep 1
b268e8
 
b268e8
+# Running it without end should not core-dump or prompt
b268e8
+parted -s $dev resizepart 1 > out 2> err || fail=1
b268e8
 
b268e8
 # extend the filesystem to end on sector 4096
b268e8
 new_end=4096s
b268e8
-- 
b268e8
2.31.1
b268e8