Generating output via JUnit_api is still failing with the interim step
to encode to 'utf-8'. Futher testing indicates the input is already a
unicode string so encoding it was the wrong step. This time, just
provide the 'backslashreplace' action to replace the unicode character
during the encode to 'ascii'.
Signed-off-by: Francis Ginther <email address hidden>
When generating output via JUnit_api, provide 'backslashreplace' as
the actionwhen encountering encoding errors instead of raising an
exception. This also requires first decoding into 'utf-8' for handling
unicode in the output stream.
Signed-off-by: Francis Ginther <email address hidden>
Using 0 as a fixed starting sector causes an error:
>>> Created a new DOS disklabel with disk identifier 0x9b4a9cf7.
/dev/loop1p1: Start sector 0 out of range.
Failed to add #1 partition: Numerical result out of range
Leaving.
Fix it by letting sfdisk pick the first available sector instead of
using a fixed value.
Signed-off-by: Paolo Pisati <email address hidden>