Skip to contentSkip to conversation

sfdisk: readline support

PATCH Ruediger Meier 2 participants 2 messages Mar 27, 2015 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Hi Karel,

Adding readline broke some sfdisk tests. See diffs below

commit 7159b496d5f86a240b5915a213a4e3a24926e407

Author: Karel Zak <[email protected]>
Date:   Wed Mar 25 16:06:39 2015 +0100

sfdisk: add readline support

$ sudo make check TS_OPTS="--parallel=1 sfdisk"

sfdisk: MBR ...

    : simple-commas               ... OK
    : activate                    ... OK
    : simple-space                ... OK
    : read-dump                   ... FAILED (sfdisk/dos-read-dump)
    : write-dump                  ... OK
    : explicit-size               ... FAILED (sfdisk/dos-explicit-size)
  ... FAILED (2 from 6 sub-tests)
sfdisk: GPT                            ...
    : all-defaults                ... FAILED (sfdisk/gpt-all-defaults)
    : uuid                        ... OK
    : label                       ... OK
    : type                        ... OK
    : attrs                       ... OK
    : read-dump                   ... FAILED (sfdisk/gpt-read-dump)
    : write-dump                  ... OK
    : list-pmbr                   ... OK

... FAILED (2 from 8 sub-tests)

$ cat tests/diff/sfdisk/*
home/rudi/devel/util-linux/build/tests/output/sfdisk/dos-explicit-size 2015-03-27 12:57:01.984412805 +0100 renamed from home/rudi/devel/util-linux/tests/expected/sfdisk/dos-explicit-size 2015-03-24 13:58:18.260127383 +0100 +8 -8
@@ -1,10 +1,3 @@
-Partition 1 does not start on physical sector boundary.
-Partition 2 does not start on physical sector boundary.
-Partition 3 does not start on physical sector boundary.
-Partition 4 does not start on physical sector boundary.
-Partition 5 does not start on physical sector boundary.
-Partition 6 does not start on physical sector boundary.
-Partition 7 does not start on physical sector boundary.
 Checking that no-one is using this disk right now ... OK
 
 Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors
@@ -21,7 +14,14 @@
 <removed>5: Created a new <removed>.
 <removed>6: Created a new <removed>.
 <removed>7: Created a new <removed>.
-<removed>8:
+<removed>8: Partition 1 does not start on physical sector boundary.
+Partition 2 does not start on physical sector boundary.
+Partition 3 does not start on physical sector boundary.
+Partition 4 does not start on physical sector boundary.
+Partition 5 does not start on physical sector boundary.
+Partition 6 does not start on physical sector boundary.
+Partition 7 does not start on physical sector boundary.
+
 New situation:
 
 Device     Boot Start    End Sectors  Size Id Type
home/rudi/devel/util-linux/build/tests/output/sfdisk/dos-read-dump 2015-03-27 12:57:01.467417762 +0100 renamed from home/rudi/devel/util-linux/tests/expected/sfdisk/dos-read-dump 2015-03-24 13:58:18.261127378 +0100 +4 -4
@@ -1,5 +1,3 @@
-Partition 5 does not start on physical sector boundary.
-Partition 6 does not start on physical sector boundary.
 Checking that no-one is using this disk right now ... OK
 
 Disk <removed>: 50 MiB, 52428800 bytes, 102400 sectors
@@ -9,14 +7,16 @@
 
 >>> Script header accepted.
 >>> Script header accepted.
->>> Created a new <removed>.
+>>> >>> Created a new <removed>.
 Created a new <removed>.
 <removed>2: Created a new <removed>.
 <removed>3: Created a new <removed>.
 <removed>4: Created a new <removed>.
 <removed>5: Created a new <removed>.
 <removed>6: Created a new <removed>.
-<removed>7:
+<removed>7: Partition 5 does not start on physical sector boundary.
+Partition 6 does not start on physical sector boundary.
+
 New situation:
 
 Device     Boot Start    End Sectors Size Id Type
home/rudi/devel/util-linux/build/tests/output/sfdisk/gpt-all-defaults 2015-03-27 12:57:03.583397476 +0100 renamed from home/rudi/devel/util-linux/tests/expected/sfdisk/gpt-all-defaults 2015-03-24 13:58:18.266127352 +0100 +1 -1
@@ -7,7 +7,7 @@
 
 >>> Script header accepted.
 >>> Script header accepted.
->>> Created a new <removed>.
+>>> >>> Created a new <removed>.
 Created a new <removed>.
 <removed>2: Created a new <removed>.
 <removed>3: Created a new <removed>.
home/rudi/devel/util-linux/build/tests/output/sfdisk/gpt-read-dump 2015-03-27 12:57:05.740376800 +0100 renamed from home/rudi/devel/util-linux/tests/expected/sfdisk/gpt-read-dump 2015-03-24 13:58:18.270127330 +0100 +1 -1
@@ -8,7 +8,7 @@
 >>> Script header accepted.
 >>> Script header accepted.
 >>> Script header accepted.
->>> Created a new <removed>.
+>>> >>> Created a new <removed>.
 Created a new <removed>.
 <removed>2: Created a new <removed>.
 <removed>3: Created a new <removed>.

cu,
Rudi

maintainer
#1 lore raw
Quoted 17 lines · Ruediger Meier

sfdisk: MBR ...

    : simple-commas               ... OK
    : activate                    ... OK
    : simple-space                ... OK
    : read-dump                   ... FAILED (sfdisk/dos-read-dump)
    : write-dump                  ... OK
    : explicit-size               ... FAILED (sfdisk/dos-explicit-size)
  ... FAILED (2 from 6 sub-tests)
sfdisk: GPT                            ...
    : all-defaults                ... FAILED (sfdisk/gpt-all-defaults)
    : uuid                        ... OK
    : label                       ... OK
    : type                        ... OK
    : attrs                       ... OK
    : read-dump                   ... FAILED (sfdisk/gpt-read-dump)
    : write-dump                  ... OK
    : list-pmbr                   ... OK
Quoted 1 line

... FAILED (2 from 8 sub-tests)

Fixed, thanks.

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com