Skip to content

Commit 07efdef

Browse files
authored
Tests: Fix for non-Bash /bin/sh (#345)
* tests: Fix Bashism in POSIX shell script testContext.sh Symptom was: > # /bin/dash ./tests/lcov/extract/testContext.sh > ./tests/lcov/extract/testContext.sh: 3: [: die: unexpected operator > [..] Signed-off-by: Sebastian Pipping <sebastian@pipping.org> * tests: Add missing portable Bash shebang line to script mcdc.sh Symptom was: > ./mcdc.sh: 61: [[: not found > ./mcdc.sh: 70: Syntax error: "(" unexpected (expecting "then") --------- Signed-off-by: Sebastian Pipping <sebastian@pipping.org>
1 parent 7034a93 commit 07efdef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/lcov/extract/testContext.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
if [ 'die' == "$1" ] ; then
3+
if [ 'die' = "$1" ] ; then
44
echo "dieing"
55
exit 1
66
fi

tests/lcov/mcdc/mcdc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env bash
12
CLEAN_ONLY=0
23
COVER=
34

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy