]> gitweb.ps.run Git - ps-cgit/blobdiff - tests/setup.sh
Make output from `make test` more readable
[ps-cgit] / tests / setup.sh
index 51d5a7519af685cd8a9927dce86bde737f63db24..5f20286b75a07c91df776a5f72a5e23fc637a6fa 100755 (executable)
@@ -54,7 +54,9 @@ summary-tags=5
 
 repo.url=foo
 repo.path=$PWD/trash/repos/foo/.git
 
 repo.url=foo
 repo.path=$PWD/trash/repos/foo/.git
-repo.desc=the foo repo
+# Do not specify a description for this repo, as it then will be assigned
+# the constant value "[no description]" (which actually used to cause a
+# segfault).
 
 repo.url=bar
 repo.path=$PWD/trash/repos/bar/.git
 
 repo.url=bar
 repo.path=$PWD/trash/repos/bar/.git
@@ -89,10 +91,10 @@ run_test()
        res=$?
        if test $res = 0
        then
        res=$?
        if test $res = 0
        then
-               printf "  %s: ok - %s\n" $test_count "$desc"
+               printf " %2d) %-60s [ok]\n" $test_count "$desc"
        else
                ((test_failed++))
        else
                ((test_failed++))
-               printf "  %s: fail - %s\n" $test_count "$desc"
+               printf " %2d) %-60s [failed]\n" $test_count "$desc"
        fi
 }
 
        fi
 }