From 1234c34d0b011363f95bde20f8b7249c81609e28 Mon Sep 17 00:00:00 2001 From: Fabricio Silva Date: Tue, 24 Dec 2024 13:37:48 +0000 Subject: [PATCH] fix(tests): make tests posix compatible --- pkg/hook/test/test_error.sh | 4 ++-- pkg/hook/test/test_simple.sh | 2 +- pkg/hook/test/test_timeout.sh | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/hook/test/test_error.sh b/pkg/hook/test/test_error.sh index e8f3694..db12de3 100755 --- a/pkg/hook/test/test_error.sh +++ b/pkg/hook/test/test_error.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh echo "Running error test script..." echo "Expected error" -exit 1 \ No newline at end of file +exit 1 diff --git a/pkg/hook/test/test_simple.sh b/pkg/hook/test/test_simple.sh index 4c84724..aca9ca1 100755 --- a/pkg/hook/test/test_simple.sh +++ b/pkg/hook/test/test_simple.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh echo "Running simple test script..." diff --git a/pkg/hook/test/test_timeout.sh b/pkg/hook/test/test_timeout.sh index a7b5ce5..fb1ebb4 100755 --- a/pkg/hook/test/test_timeout.sh +++ b/pkg/hook/test/test_timeout.sh @@ -1,12 +1,12 @@ -#!/bin/bash +#!/bin/sh echo "Running timeout test script..." -for i in {1..5}; do +for i in `seq 5`; do sleep .5 echo "running..." done echo "This line should not be executed!" -exit 0 \ No newline at end of file +exit 0