Compare commits
No commits in common. "ded9b60bf74e9452e00187cff395f2dbb1fb3e11" and "66012a64b67a1270a5528bd6e18e0087149b5c46" have entirely different histories.
ded9b60bf7
...
66012a64b6
|
@ -2,7 +2,9 @@
|
|||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- qemu-utils
|
||||
- parted
|
||||
- jq
|
||||
- kmod
|
||||
script:
|
||||
- ./test.sh
|
||||
|
|
|
@ -79,7 +79,7 @@ function version_from_partnum
|
|||
local partnum="$2"
|
||||
version="$(parted -m "$drive" -- print|awk -F: \
|
||||
-v partnum="$partnum" \
|
||||
'{if (NR > 2 && $1 == partnum &&
|
||||
'{if (NR > 2 && $1 == partnum && $1 >= 2 && $1 <= 4 &&
|
||||
$6 != "root unused") {
|
||||
print $6
|
||||
}}')"
|
||||
|
|
|
@ -25,8 +25,7 @@ function test_partitioning()
|
|||
|
||||
find_unused "$img"
|
||||
assertEquals "find_unused" 3 "$unused"
|
||||
version_from_partnum "$img" 3
|
||||
assertEquals "version_from_partnum unused" "" "$version"
|
||||
assertEquals "version_from_partnum unused" "" "$unused"
|
||||
|
||||
rename_partition "$img" 3 "root $min_version"
|
||||
find_oldest "$img"
|
||||
|
|
Loading…
Reference in New Issue
Block a user