Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
31dfaf31
Commit
31dfaf31
authored
Apr 08, 2019
by
Patrick Ohly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prow.sh: fix running of just "alpha" tests
"grep -w" treated "serial-alpha" as two words and therefore CSI_PROW_TESTS sometimes ran too many tests.
parent
f5014439
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
prow.sh
prow.sh
+10
-1
No files found.
prow.sh
View file @
31dfaf31
...
@@ -203,7 +203,16 @@ configvar CSI_PROW_SANITY_CONTAINER "hostpath" "Kubernetes container with CSI dr
...
@@ -203,7 +203,16 @@ configvar CSI_PROW_SANITY_CONTAINER "hostpath" "Kubernetes container with CSI dr
# by setting CSI_PROW_TESTS_SANITY.
# by setting CSI_PROW_TESTS_SANITY.
configvar CSI_PROW_TESTS
"unit parallel serial parallel-alpha serial-alpha
${
CSI_PROW_TESTS_SANITY
}
"
"tests to run"
configvar CSI_PROW_TESTS
"unit parallel serial parallel-alpha serial-alpha
${
CSI_PROW_TESTS_SANITY
}
"
"tests to run"
test_enabled
()
{
test_enabled
()
{
echo
"
${
CSI_PROW_TESTS
}
"
|
grep
-q
-w
-e
"
$1
"
local test
=
"
$1
"
# We want word-splitting here, so ignore: Double quote to prevent globbing and word splitting.
# shellcheck disable=SC2086
set
${
CSI_PROW_TESTS
}
for
t
in
"
$@
"
;
do
if
[
"
$t
"
=
"
$test
"
]
;
then
return
fi
done
return
1
}
}
# Serial vs. parallel is always determined by these regular expressions.
# Serial vs. parallel is always determined by these regular expressions.
...
...
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