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
414ae795
Commit
414ae795
authored
Oct 16, 2014
by
bgrant0607
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1837 from thockin/e2e
Clean up e2e more
parents
75e2cf8e
95f57dc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
e2e-test.sh
hack/e2e-test.sh
+7
-7
No files found.
hack/e2e-test.sh
View file @
414ae795
...
@@ -70,7 +70,7 @@ if [[ ${LEAVE_UP} -ne 1 ]]; then
...
@@ -70,7 +70,7 @@ if [[ ${LEAVE_UP} -ne 1 ]]; then
fi
fi
TEST_PATTERN
=
"
${
TEST_PATTERN
:-}
"
TEST_PATTERN
=
"
${
TEST_PATTERN
:-}
"
any_failed
=
0
failed
=()
for
test_file
in
$(
ls
"
${
KUBE_ROOT
}
/hack/e2e-suite/"
)
;
do
for
test_file
in
$(
ls
"
${
KUBE_ROOT
}
/hack/e2e-suite/"
)
;
do
if
[[
"
${
TEST_PATTERN
}
"
!=
""
]]
;
then
if
[[
"
${
TEST_PATTERN
}
"
!=
""
]]
;
then
check
=
".*
${
TEST_PATTERN
}
.*"
check
=
".*
${
TEST_PATTERN
}
.*"
...
@@ -81,21 +81,21 @@ for test_file in $(ls "${KUBE_ROOT}/hack/e2e-suite/"); do
...
@@ -81,21 +81,21 @@ for test_file in $(ls "${KUBE_ROOT}/hack/e2e-suite/"); do
fi
fi
echo
"running
$test_file
"
echo
"running
$test_file
"
"
${
KUBE_ROOT
}
/hack/e2e-suite/
${
test_file
}
"
result
=
0
result
=
"
$?
"
"
${
KUBE_ROOT
}
/hack/e2e-suite/
${
test_file
}
"
||
result
=
"
$?
"
if
[[
"
${
result
}
"
-eq
"0"
]]
;
then
if
[[
"
${
result
}
"
-eq
"0"
]]
;
then
echo
"
${
test_file
}
returned
${
result
}
; passed!"
echo
"
${
test_file
}
returned
${
result
}
; passed!"
else
else
echo
"
${
test_file
}
returned
${
result
}
; FAIL!"
echo
"
${
test_file
}
returned
${
result
}
; FAIL!"
any_failed
=
$((
any_failed+1
)
)
failed+
=(
${
test_file
}
)
fi
fi
done
done
echo
echo
if
[[
${
any_failed
}
-eq
0
]]
;
then
if
[[
"
${#
failed
[*]
}
"
-eq
0
]]
;
then
echo
"Final: All tests passed."
echo
"Final: All tests passed."
else
else
echo
"Final:
${
any_failed
}
tests failed
."
echo
"Final:
${
#
failed
[@]
}
tests failed:
${
failed
[@]
}
."
fi
fi
exit
${
any_failed
}
exit
"
${#
failed
[@]
}
"
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