Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
5034f07a
Commit
5034f07a
authored
Oct 25, 2014
by
Nick Østergaard
Committed by
Brian Sidebotham
Oct 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Update the python qa test suite to exit with an error code if any errors fail
parent
e4a5f248
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
test.py
qa/test.py
+6
-1
No files found.
qa/test.py
View file @
5034f07a
import
unittest
import
unittest
import
platform
import
platform
import
sys
if
platform
.
python_version
()
<
'2.7'
:
if
platform
.
python_version
()
<
'2.7'
:
unittest
=
__import__
(
'unittest2'
)
unittest
=
__import__
(
'unittest2'
)
...
@@ -8,6 +9,10 @@ else:
...
@@ -8,6 +9,10 @@ else:
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
testsuite
=
unittest
.
TestLoader
()
.
discover
(
'testcases'
,
pattern
=
"*.py"
)
testsuite
=
unittest
.
TestLoader
()
.
discover
(
'testcases'
,
pattern
=
"*.py"
)
unittest
.
TextTestRunner
(
verbosity
=
100
)
.
run
(
testsuite
)
results
=
unittest
.
TextTestRunner
(
verbosity
=
100
)
.
run
(
testsuite
)
# Return an error code if any of the testsuite tests fail
if
len
(
results
.
errors
)
>
0
:
sys
.
exit
(
1
)
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