|| errlog "missing device for media $media in $CONFIG_FILE" \
|| return $?
exists_block_device "$media" "$device" || return $?
+ echo "ℹ️ INFO: media $media with device $device found"
key=$(echo "$config" \
| jq --raw-output ".media.\"$media\".key")
assert_failure
assert_line --index 0 "⭐ START: backupmount"
- assert_line --index 1 "❌ ERROR: missing key for media day in src/config-example.yaml"
+ assert_line --index 1 "ℹ️ INFO: media day with device /dev/path/to/day found"
+ assert_line --index 2 "❌ ERROR: missing key for media day in src/config-example.yaml"
}
# bats test_tags=backupmount:mount
assert_failure
assert_line --index 0 "⭐ START: backupmount"
- assert_line --index 1 "❌ ERROR: key notexistskey for media day not exists"
+ assert_line --index 1 "ℹ️ INFO: media day with device /dev/path/to/day found"
+ assert_line --index 2 "❌ ERROR: key notexistskey for media day not exists"
}
\ No newline at end of file