Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Production Test Suite
Commits
748e2210
Commit
748e2210
authored
Jun 01, 2011
by
Samuel Iglesias Gonsalvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tps/test: remove TpsUser exceptions to facilitate the work to operators.
parent
c136b56b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test02.py
test/spec/python/test02.py
+2
-2
test05.py
test/spec/python/test05.py
+2
-2
No files found.
test/spec/python/test02.py
View file @
748e2210
...
...
@@ -262,7 +262,7 @@ class EEPROM_GENNUM:
if
written
==
len
(
file_data
):
print
'EEPROM written with '
+
file_name
+
' content!'
else
:
raise
Tps
Use
r
(
"ERROR writting to the EEPROM: Written lenght doesn't correspond with the length of the file."
)
raise
Tps
Erro
r
(
"ERROR writting to the EEPROM: Written lenght doesn't correspond with the length of the file."
)
return
0
def
compare_eeprom_with_file
(
self
,
file_name
):
...
...
@@ -292,7 +292,7 @@ class EEPROM_GENNUM:
if
file_data
[
i
]
==
eeprom_data
[
i
]:
print
'EEPROM=
%.2
X, FILE=
%.2
X => OK'
%
(
eeprom_data
[
i
],
file_data
[
i
])
else
:
raise
Tps
Use
r
(
'EEPROM=
%.2
X, FILE=
%.2
X => ERROR'
%
(
eeprom_data
[
i
],
file_data
[
i
]))
raise
Tps
Erro
r
(
'EEPROM=
%.2
X, FILE=
%.2
X => ERROR'
%
(
eeprom_data
[
i
],
file_data
[
i
]))
def
main
(
default_directory
=
'.'
):
...
...
test/spec/python/test05.py
View file @
748e2210
...
...
@@ -391,7 +391,7 @@ def main (default_directory='.'):
if
(
p
.
is_alive
())
:
p
.
terminate
();
raise
Tps
Use
r
(
"Test SATA -> DP0: Error in DP0, RX"
)
raise
Tps
Erro
r
(
"Test SATA -> DP0: Error in DP0, RX"
)
time
.
sleep
(
2
);
...
...
@@ -410,7 +410,7 @@ def main (default_directory='.'):
if
(
p
.
is_alive
())
:
p
.
terminate
();
raise
Tps
Use
r
(
"Test DP0 -> SATA 0: Error in SATA 0, RX"
)
raise
Tps
Erro
r
(
"Test DP0 -> SATA 0: Error in SATA 0, RX"
)
time
.
sleep
(
2
)
...
...
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