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
09258e3d
Commit
09258e3d
authored
Apr 09, 2026
by
Ivan Mazhukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add --latest flag support
parent
7e7b7acd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
epm-docker-test.sh
epm-docker-test.sh
+11
-3
No files found.
epm-docker-test.sh
View file @
09258e3d
...
...
@@ -9,6 +9,7 @@ DEFAULT_REMOTE_USER="${EPM_DOCKER_TEST_REMOTE_USER:-builder-robot}"
DEFAULT_LOG_ROOT
=
"
${
XDG_STATE_HOME
:-
$HOME
/.local/state
}
/epm-docker-test"
COMMAND
=
"play"
PLAY_FLAGS
=()
APP_NAME
=
""
SYSTEM_IMAGE
=
""
RUN_MODE
=
"auto"
...
...
@@ -72,6 +73,7 @@ Options:
--builder-path <path> Explicit builder64 source path
--preset <all|russian|main>
Add a named system preset
--latest Pass --latest to epm play
--parallel Run tests in parallel (all at once)
-j <N> Run up to N tests in parallel
--log-root <path> Directory for saved logs
...
...
@@ -483,6 +485,8 @@ set -eu
TEST_COMMAND="
$1
"
APP_NAME="
$2
"
shift 2
EXTRA_FLAGS="
$*
"
SOURCE_DIR="/work/eepm"
run_eepm() {
...
...
@@ -537,7 +541,7 @@ esac
case "
$TEST_COMMAND
" in
play)
exec bash ./bin/eepm play --auto "
$APP_NAME
"
exec bash ./bin/eepm play --auto
$EXTRA_FLAGS
"
$APP_NAME
"
;;
*)
printf '[container] unsupported test command: %s\n' "
$TEST_COMMAND
" >&2
...
...
@@ -578,7 +582,7 @@ run_container_locally() {
--volume
"
$resolved_source
:/work/eepm:ro"
\
--volume
"
$inner_script
:/tmp/epm-docker-test-inner.sh:ro"
\
"
$SYSTEM_IMAGE
"
\
sh /tmp/epm-docker-test-inner.sh
"
$COMMAND
"
"
$APP_NAME
"
;
then
sh /tmp/epm-docker-test-inner.sh
"
$COMMAND
"
"
$APP_NAME
"
"
${
PLAY_FLAGS
[@]
}
"
;
then
status
=
0
else
status
=
$?
...
...
@@ -593,7 +597,7 @@ build_remote_args() {
local
remote_source
local
target
REMOTE_ARGS
=(
--internal-local-run
--mode
local
)
REMOTE_ARGS
=(
--internal-local-run
--mode
local
"
${
PLAY_FLAGS
[@]
}
"
)
REMOTE_SYNC_DIR
=
""
target
=
"
$(
remote_target
)
"
...
...
@@ -804,6 +808,10 @@ parse_args() {
PARALLEL_JOBS
=
"
$2
"
shift
2
;;
--latest
)
PLAY_FLAGS+
=(
--latest
)
shift
;;
--log-root
)
[[
$#
-ge
2
]]
||
fatal
"--log-root requires a value"
LOG_ROOT
=
"
$2
"
...
...
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