Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
Jacklull
k3s
Commits
97bb6cb9
Commit
97bb6cb9
authored
Nov 21, 2017
by
Slava Semushin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make quick-verify: make the output a bit more readable by showing script names without full paths.
parent
ec036d9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
verify.sh
hack/make-rules/verify.sh
+7
-5
No files found.
hack/make-rules/verify.sh
View file @
97bb6cb9
...
...
@@ -92,24 +92,26 @@ function run-checks {
local
-r
pattern
=
$1
local
-r
runner
=
$2
local
t
for
t
in
$(
ls
${
pattern
})
do
local
check_name
=
"
$(
basename
"
${
t
}
"
)
"
if
is-excluded
"
${
t
}
"
;
then
echo
"Skipping
${
t
}
"
echo
"Skipping
${
check_name
}
"
continue
fi
if
${
QUICK
}
&&
!
is-quick
"
${
t
}
"
;
then
echo
"Skipping
${
t
}
in quick mode"
echo
"Skipping
${
check_name
}
in quick mode"
continue
fi
echo
-e
"Verifying
${
t
}
"
echo
-e
"Verifying
${
check_name
}
"
local
start
=
$(
date
+%s
)
run-cmd
"
${
runner
}
"
"
${
t
}
"
&&
tr
=
$?
||
tr
=
$?
local
elapsed
=
$(($(
date
+%s
)
-
${
start
}))
if
[[
${
tr
}
-eq
0
]]
;
then
echo
-e
"
${
color_green
}
SUCCESS
${
color_norm
}
${
t
}
\t
${
elapsed
}
s"
echo
-e
"
${
color_green
}
SUCCESS
${
color_norm
}
${
check_name
}
\t
${
elapsed
}
s"
else
echo
-e
"
${
color_red
}
FAILED
${
color_norm
}
${
t
}
\t
${
elapsed
}
s"
echo
-e
"
${
color_red
}
FAILED
${
color_norm
}
${
check_name
}
\t
${
elapsed
}
s"
ret
=
1
FAILED_TESTS+
=(
${
t
}
)
fi
...
...
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