Skip to content

Commit

Permalink
Merge pull request #1436 from robfrawley/bugfix-fix-bash-test-scripts
Browse files Browse the repository at this point in the history
Fix test suite bash helper scripts on systems with multiple (and older) bash versions
  • Loading branch information
dbu committed Dec 1, 2021
2 parents 6ed7f68 + 66e6bbf commit 89e7563
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/Fixtures/bin/post-process-as-file-error.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

source "`cd $(dirname ${BASH_SOURCE[0]}) && pwd`/post-process-as-file.bash"

Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/bin/post-process-as-file.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

source "`cd $(dirname ${BASH_SOURCE[0]}) && pwd`/post-process-common.bash"

Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/bin/post-process-as-stdin-error.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

source "`cd $(dirname ${BASH_SOURCE[0]}) && pwd`/post-process-as-stdin.bash"

Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/bin/post-process-as-stdin.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

source "`cd $(dirname ${BASH_SOURCE[0]}) && pwd`/post-process-common.bash"

Expand Down
4 changes: 2 additions & 2 deletions tests/Fixtures/bin/post-process-common.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

function writeScriptInformation()
{
Expand Down Expand Up @@ -36,7 +36,7 @@ function writeScriptInformation()

function writeScriptDebugFile()
{
local debugFile="/tmp/post-process-fixture-bin.log"
local debugFile="${TMPDIR:-/tmp}/post-process-fixture-bin.log"

if read -t 0; then
cat | tee "${debugFile}"
Expand Down

0 comments on commit 89e7563

Please sign in to comment.