Commit 5bb2bbe5 authored by Chris Lamb's avatar Chris Lamb 💬

tests/common: Factor out utility to get variations from mount target.

parent 7a649d99
......@@ -10,13 +10,17 @@ Unmount () {
fusermount -u target/ 2>/dev/null && rm -rf target/
}
Get_entries () {
find target -type f -printf %f
}
Fail () {
echo "E: ${*}"
exit 1
}
Expect () {
ENTRIES="$(find target -type f -printf %f)"
ENTRIES="$(Get_entries)"
EXPECTED="${1}"
if [ "${ENTRIES}" != "${EXPECTED}" ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment