fix: use sudo differently

- try to run the whole `drive` test in sudo instead of just individual
  commands
This commit is contained in:
Peter Šurda 2021-02-26 22:36:16 +01:00
parent d34ff41d97
commit 2f16330445
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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"
}