sysdeploy/tests/drive.sh
Peter Surda 2f16330445
fix: use sudo differently
- try to run the whole `drive` test in sudo instead of just individual
  commands
2021-02-26 22:36:16 +01:00

20 lines
288 B
Bash
Executable File

#!/bin/bash
function test_partitioning()
{
local img
img=$(mktemp -u)
dd if=/dev/zero of="$img" bs=1M seek=16384 count=0
setup_drive "$img"
parted -ms "$img" -- print
rm -f "$img"
}
function oneTimeSetUp()
{
. drive.inc
}
# Load shUnit2.
. /usr/bin/shunit2