Commit 11bb91f 1 parent 0247a26 commit 11bb91f Copy full SHA for 11bb91f
File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ test_setup: test_teardown
13
13
python3 ci/scripts/hang_webserver.py 12345 &
14
14
15
15
test_teardown :
16
- kill -9 $$(ps -ewf | grep hang_webserver | grep -v grep | awk '{print $$2 }' ) || true
16
+ kill -9 $$(ps -ef | grep hang_webserver | grep -v grep | awk '{print $$1 }' ) || true
17
17
18
18
test : deps test_setup
19
19
./ci/scripts/execute_tests.sh
Original file line number Diff line number Diff line change 1
- #! /bin/bash -x
1
+ #! /bin/bash -ex
2
2
# Add local user
3
3
# Either use the LOCAL_USER_ID if passed in at runtime or
4
4
# fallback
5
5
6
6
USER_ID=${LOCAL_USER_ID:- 9001}
7
7
8
8
echo " Starting with UID : $USER_ID "
9
- useradd --shell /bin/bash -u $USER_ID -o -c " " -m user
9
+ adduser -s /bin/bash -u $USER_ID -h /home/user -D user
10
10
export HOME=/home/user
11
+ mkdir -p /home/user/.cache
12
+ chown user:user /home/user/.cache
13
+
14
+ exec gosu user " $@ "
11
15
12
- exec /usr/local/bin/gosu user " $@ "
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ cd $TOPDIR
15
15
if [[ -n " $JENKINS_HOME " ]]; then
16
16
export WORKSPACE=${WORKSPACE:-/ mnt/ workspace}
17
17
go install github.com/jstemmer/go-junit-report/v2@latest
18
- go test $GO_TEST_PARAMS -timeout 90m -race -v . | go-junit-report -iocopy -out $WORKSPACE /junit-go.xml
18
+ go test $GO_TEST_PARAMS -timeout 90m -race -v . | /home/user/go/bin/ go-junit-report -iocopy -out $WORKSPACE /junit-go.xml
19
19
else
20
20
go test $GO_TEST_PARAMS -timeout 90m -race -coverprofile=coverage.txt -covermode=atomic -v .
21
21
fi
You can’t perform that action at this time.
0 commit comments