Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
段孔乐
docker-elk
Commits
fff244e4
Unverified
Commit
fff244e4
authored
Jan 07, 2021
by
Antoine Cotten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Avoid printing unnecessary empty lines
parent
282a8bbc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
testing.sh
.github/workflows/scripts/lib/testing.sh
+2
-3
No files found.
.github/workflows/scripts/lib/testing.sh
View file @
fff244e4
...
...
@@ -7,7 +7,7 @@ function log {
# Log an error.
function
err
{
echo
-e
"
\n
[x]
$1
\n
"
echo
-e
"
\n
[x]
$1
\n
"
>
&2
}
# Return the ID of the container running the given service.
...
...
@@ -22,6 +22,7 @@ function container_id {
fi
local
cid
# retry for max 60s (30*2s)
for
_
in
$(
seq
1 30
)
;
do
cid
=
"
$(
docker container
ls
-aq
-f
label
=
"
$label
"
)
"
...
...
@@ -32,7 +33,6 @@ function container_id {
echo
-n
'.'
>
&2
sleep
2
done
echo
-e
'\n'
>
&2
if
[
-z
"
${
cid
:-}
"
]
;
then
err
"Timed out waiting for creation of container with label
${
label
}
"
...
...
@@ -107,7 +107,6 @@ function poll_ready {
echo
-n
'x'
>
&2
sleep
5
done
echo
-e
'\n'
>
&2
echo
-e
"
\n
${
output
::-3
}
"
...
...
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