]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
add music pathes default for test
authorBastian Dehn <hhaalo@arcor.de>
Fri, 25 Sep 2026 07:24:56 +0000 (09:24 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 25 Sep 2026 07:24:56 +0000 (09:24 +0200)
tests/albentohandy.bats

index d9dfdb1e75df678286dba0fbe48e47246e13f968..5366a4c2122bb816025c5758f5ccdec7a9115a2e 100755 (executable)
@@ -6,6 +6,7 @@ setup() {
        mkdir --parents "build/tests"
        export TEST_MODE="ON"
        export CONFIG_FILE="build/tests/albentohandy.conf"
+       echo "MUSIC_PATHES=(\"build/tests\")" > "$CONFIG_FILE"
        source src/albentohandy
 }
 
@@ -35,7 +36,7 @@ teardown() {
 }
 
 @test "failed: missing MUSIC_PATHES" {
-       touch build/tests/albentohandy.conf
+       echo "" > build/tests/albentohandy.conf
 
        run main