forked from Bitmessage/sysdeploy
fix: use sudo differently
- try to run the whole `drive` test in sudo instead of just individual commands
This commit is contained in:
parent
d34ff41d97
commit
2f16330445
2
test.sh
2
test.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
tests/maas.sh
|
tests/maas.sh
|
||||||
tests/drive.sh
|
sudo tests/drive.sh
|
||||||
|
|
|
@ -5,8 +5,8 @@ function test_partitioning()
|
||||||
local img
|
local img
|
||||||
img=$(mktemp -u)
|
img=$(mktemp -u)
|
||||||
dd if=/dev/zero of="$img" bs=1M seek=16384 count=0
|
dd if=/dev/zero of="$img" bs=1M seek=16384 count=0
|
||||||
sudo setup_drive "$img"
|
setup_drive "$img"
|
||||||
sudo parted -ms "$img" -- print
|
parted -ms "$img" -- print
|
||||||
rm -f "$img"
|
rm -f "$img"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user