From d45d5cde50e82bb0b595a2e208e349a030233042 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Mon, 6 Mar 2023 10:01:27 -0600 Subject: [PATCH] test: switch to bash We are using some bash-specific tricks. Signed-off-by: Felipe Contreras --- test/Makefile | 2 +- test/bidi.t | 2 +- test/hg-git.t | 2 +- test/main.t | 2 +- test/test-lib.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Makefile b/test/Makefile index 00d63a1..02c8c01 100644 --- a/test/Makefile +++ b/test/Makefile @@ -11,7 +11,7 @@ test: $(T) $(MAKE) clean $(T): - $(SHELL) $@ $(TEST_OPTS) + ./$@ $(TEST_OPTS) clean: $(RM) -r 'trash directory'.* test-results diff --git a/test/bidi.t b/test/bidi.t index b6d2bbb..cdbe07f 100755 --- a/test/bidi.t +++ b/test/bidi.t @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2012 Felipe Contreras # diff --git a/test/hg-git.t b/test/hg-git.t index 1a80938..7d0fc4a 100755 --- a/test/hg-git.t +++ b/test/hg-git.t @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2012 Felipe Contreras # diff --git a/test/main.t b/test/main.t index 8fd35fe..dccec35 100755 --- a/test/main.t +++ b/test/main.t @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2012 Felipe Contreras # diff --git a/test/test-lib.sh b/test/test-lib.sh index 727083e..b0d6580 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash : "${SHARNESS_TEST_SRCDIR:=$(cd "$(dirname "${BASH_SOURCE-$0}")" && pwd)}" . "$SHARNESS_TEST_SRCDIR"/sharness.sh