Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
epm-docker-test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
epm-docker-test
Commits
6ceb27f2
Commit
6ceb27f2
authored
Apr 02, 2026
by
Ivan Mazhukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use sh for inner script
parent
6bffb436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
epm-docker-test.sh
epm-docker-test.sh
+8
-9
No files found.
epm-docker-test.sh
View file @
6ceb27f2
...
...
@@ -381,31 +381,30 @@ build_container_script() {
local
script_path
=
"
$1
"
cat
>
"
$script_path
"
<<
'
EOF
'
#!/
usr/bin/env ba
sh
#!/
bin/
sh
set -eu
o pipefail
set -eu
TEST_COMMAND="
$1
"
APP_NAME="
$2
"
SOURCE_DIR="/work/eepm"
run_eepm() {
bash
./bin/eepm "
$@
"
./bin/eepm "
$@
"
}
os_id="unknown"
if [[ -r /etc/os-release ]]; then
# shellcheck disable=SC1091
if [ -r /etc/os-release ]; then
. /etc/os-release
os_id="
${
ID
:-
unknown
}
"
fi
printf '[container] bootstrap: os_id=%s\n' "
$os_id
" >&2
[[ -f "
$SOURCE_DIR
/bin/eepm" ]] || {
if [ ! -f "
$SOURCE_DIR
/bin/eepm" ]; then
printf '[container] eepm tree does not contain ./bin/eepm\n' >&2
exit 3
}
fi
export HOME="/tmp/epm-home"
mkdir -p "
$HOME
"
...
...
@@ -429,7 +428,7 @@ esac
case "
$TEST_COMMAND
" in
play)
exec
bash
./bin/eepm play --auto "
$APP_NAME
"
exec ./bin/eepm play --auto "
$APP_NAME
"
;;
*)
printf '[container] unsupported test command: %s\n' "
$TEST_COMMAND
" >&2
...
...
@@ -470,7 +469,7 @@ run_container_locally() {
--volume
"
$resolved_source
:/work/eepm:ro"
\
--volume
"
$inner_script
:/tmp/epm-docker-test-inner.sh:ro"
\
"
$SYSTEM_IMAGE
"
\
ba
sh /tmp/epm-docker-test-inner.sh
"
$COMMAND
"
"
$APP_NAME
"
;
then
sh /tmp/epm-docker-test-inner.sh
"
$COMMAND
"
"
$APP_NAME
"
;
then
status
=
0
else
status
=
$?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment