Skip to content

Commit c68d759

Browse files
committed
fix(ci/smoketest): prevent failure by exposing git into image (as required by recent appmap)
1 parent 24bd28b commit c68d759

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ci/run_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ t=$([ -t 0 ] && echo 't')
77
docker run -q -i${t} --rm\
88
-v $PWD/dist:/dist -v $PWD/_appmap/test/data/unittest:/_appmap/test/data/unittest\
99
-v $PWD/ci:/ci\
10+
-v $PWD/.git:/tmp/.git:ro\
1011
-w /tmp\
1112
-v $PWD/ci/readonly-mount-appmap.log:/tmp/appmap.log:ro\
1213
$SMOKETEST_DOCKER_IMAGE bash -ce "${@:-/ci/smoketest.sh; /ci/test_pipenv.sh; /ci/test_poetry.sh}"

ci/smoketest.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ EOF
3636
}
3737

3838
set -ex
39+
40+
# now appmap requires git
41+
apt-get update -qq \
42+
&& apt-get install -y --no-install-recommends git
43+
3944
pip -q install -U pip pytest "flask>=2,<3" python-decouple
4045
pip -q install /dist/appmap-*-py3-none-any.whl
4146

@@ -66,4 +71,4 @@ else
6671
exit 1
6772
fi
6873

69-
test_log_file_not_writable
74+
test_log_file_not_writable

0 commit comments

Comments
 (0)