mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 13:46:41 +02:00
https://github.com/ncarlier/webhookd A very simple webhook server launching shell scripts
47 lines
1 KiB
Diff
47 lines
1 KiB
Diff
Make tests posix compatible
|
|
|
|
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
|