From 6a2cf96e958bcb79e614169ceba405bd0e865492 Mon Sep 17 00:00:00 2001 From: Fabricio Silva Date: Sun, 12 Jan 2025 08:12:00 +0000 Subject: [PATCH] chore(tests): make tests posix compatible (#109) --- 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