Files
bootrr/helpers/assert_partition_found
2021-01-21 08:56:20 -08:00

18 lines
268 B
Bash
Executable File

#!/bin/sh
. bootrr
TEST_CASE_ID="$1"
PARTITION="$2"
if [ -z "${TEST_CASE_ID}" -o -z "${PARTITION}" ]; then
echo "Usage: $0 <test-case-id> <partition>"
exit 1
fi
if [ -L /dev/disk/by-partlabel/${PARTITION} ]; then
test_report_exit pass
fi
test_report_exit fail