Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
cf4fc49c
Unverified
Commit
cf4fc49c
authored
Dec 07, 2023
by
F-WRunTime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update loggint o publish results on pass AND FAIL
parent
13c16d45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
run-kontrol.sh
...ges/contracts-bedrock/test/kontrol/kontrol/run-kontrol.sh
+11
-6
No files found.
packages/contracts-bedrock/test/kontrol/kontrol/run-kontrol.sh
View file @
cf4fc49c
...
...
@@ -72,24 +72,27 @@ docker_exec () {
docker
exec
--workdir
/home/user/workspace
${
CONTAINER_NAME
}
$@
}
# Define the function to run on failure
on_failure
()
{
dump_log_results
(){
notif
"Something went wrong. Running cleanup..."
notif
"Creating Tar of Proof Results"
docker
exec
${
CONTAINER_NAME
}
tar
-czvf
results.tar.gz kout/proofs
notif
"Copying Tests Results to Host"
blank_line
docker
cp
${
CONTAINER_NAME
}
:/home/user/workspace/results.tar.gz
.
notif
"Stopping Docker Container"
blank_line
docker
cp
${
CONTAINER_NAME
}
:/home/user/workspace/results.tar.gz ./kontrol-results_
$(
date
+
'%Y-%m-%d-%H-%M-%S'
)
.tar.gz
notif
"Dump Logs"
LOG_FILE
=
"run-kontrol-
$(
date
+
'%Y-%m-%d-%H-%M-%S'
)
.log"
docker logs
${
CONTAINER_NAME
}
>
$LOG_FILE
}
# Define the function to run on failure
on_failure
()
{
dump_log_results
notif
"Stopping Docker Container"
docker stop
${
CONTAINER_NAME
}
#
docker stop ${CONTAINER_NAME}
blank_line
notif
"Cleanup complete."
...
...
@@ -143,6 +146,8 @@ start_docker
kontrol_build
kontrol_prove
dump_log_results
blank_line
notif
"DONE"
blank_line
\ No newline at end of file
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