Skip to content

Commit 8a2f6b7

Browse files
authored
Merge pull request #1436 from EliahKagan/script-helpers
Remove execution-specific code in sourcing-only .sh files
2 parents 36f221b + 55d9ceb commit 8a2f6b7

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

tests/helpers.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Must be sourced into the main journey test
12

23
function set-static-git-environment() {
34
set -a
@@ -66,4 +67,3 @@ function launch-git-daemon() {
6667
done
6768
trap 'kill $daemon_pid' EXIT
6869
}
69-

tests/journey/ein.sh

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Must be sourced into the main journey test
2-
set -eu
32

43
if test "$kind" = "max" || test "$kind" = "max-pure"; then
54
title "Porcelain ${kind}"

tests/journey/gix.sh

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Must be sourced into the main journey test
2-
set -eu
32

43
title plumbing "${kind}"
54
snapshot="$snapshot/plumbing"

tests/utilities.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
# Must be sourced into the main journey test
22

33
WHITE="$(tput setaf 9 2>/dev/null || echo -n '')"
44
YELLOW="$(tput setaf 3 2>/dev/null || echo -n '')"

0 commit comments

Comments
 (0)