fix: use sudo differently

- try to run the whole `drive` test in sudo instead of just individual
  commands
master
Peter Šurda 2 years ago
parent d34ff41d97
commit 2f16330445
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

@ -1,4 +1,4 @@
#!/bin/bash
tests/maas.sh
tests/drive.sh
sudo tests/drive.sh

@ -5,8 +5,8 @@ function test_partitioning()
local img
img=$(mktemp -u)
dd if=/dev/zero of="$img" bs=1M seek=16384 count=0
sudo setup_drive "$img"
sudo parted -ms "$img" -- print
setup_drive "$img"
parted -ms "$img" -- print
rm -f "$img"
}

Loading…
Cancel
Save