From 4513156c7a52c18cebe85769c592610081cc23d3 Mon Sep 17 00:00:00 2001 From: b3n Date: Thu, 13 Jun 2024 15:13:20 +0200 Subject: [PATCH] Fix test binary (#13) Signed-off-by: Benoit Donneaux --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ff1e788..a618adf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -58,12 +58,12 @@ jobs: - name: Test binary id: test_binary run: | - # Run some basic test on the binary built earlier - echo -n "Test for a static executable: " - ldd ../trac2gitea | grep -q 'not a dynamic executable' \ + # some basic tests on the binary built earlier + echo -n "Test for a static executable... " + ldd ./trac2gitea 2>&1 | grep -q 'not a dynamic executable' \ && echo PASS \ || { echo FAIL; exit 1; } - echo -n "Test for usage prompt on execution: " + echo -n "Test for usage prompt on execution... " ./trac2gitea --help 2>&1 | grep -q '^Usage' \ && echo 'PASS' \ || { echo 'FAIL'; exit 1; }