]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add info for meida found
authorBastian Dehn <hhaalo@arcor.de>
Sun, 16 Aug 2026 15:14:36 +0000 (17:14 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 16 Aug 2026 15:14:36 +0000 (17:14 +0200)
src/backupmount
tests/backupmount_tests.bats

index a1d0ba516915a7c3d975b80144f542f159669a2b..0ad4b658b776bde2e5558aed60fde002a09841bd 100755 (executable)
@@ -64,6 +64,7 @@ mount_device()
                || 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")
index 2fc3524728a70952e9caeaa96100158bccf9c705..6e7aceda178e7036e3405d71148a9f47419eddf7 100755 (executable)
@@ -164,7 +164,8 @@ teardown() {
 
        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
@@ -187,5 +188,6 @@ teardown() {
 
        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