Skip to content

Commit b5a5964

Browse files
fix: test commands fix. Run max_parallelism/main.go from a temporal directory works. (#99)
1 parent 6ed27bc commit b5a5964

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/commands/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ steps:
106106
ORB_VAL_RUN: <<parameters.run>>
107107
ORB_EVAL_COVER_PROFILE: <<parameters.coverprofile>>
108108
ORB_EVAL_PROJECT_PATH: <<parameters.project-path>>
109+
MAX_PARALLELISM_GO_CONTENTS: <<include(max_parallelism/main.go)>>
109110
command: <<include(scripts/test.sh)>>
110111
name: "go test"
111112
no_output_timeout: <<parameters.no_output_timeout>>

src/scripts/test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22
if [ "${ORB_VAL_PARALLEL}" = "m" ] || [ "${ORB_VAL_PARALLEL_TESTS}" = "m" ]; then
3-
GOMAXPROCS=$(go run max_parallelism/main.go)
3+
mkdir -p /tmp/go-orb/max_parallelism/
4+
echo "$MAX_PARALLELISM_GO_CONTENTS" > /tmp/go-orb/max_parallelism/main.go
5+
GOMAXPROCS=$(go run /tmp/go-orb/max_parallelism/main.go)
6+
rm -rf /tmp/go-orb
47
fi
58

69
if [ "${ORB_VAL_PARALLEL}" = "m" ]; then

0 commit comments

Comments
 (0)