Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DecafPlus
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
Tianqi Yang
DecafPlus
Commits
9763cd5b
Commit
9763cd5b
authored
Jan 11, 2019
by
Tianqi Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(original): fix runAll.py to remove blackjack if exists
Fix runAll.py to remove test case blackjack if exists
parent
6ad812a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
runAll.py
unittest/original/runAll.py
+2
-1
No files found.
unittest/original/runAll.py
View file @
9763cd5b
...
@@ -17,6 +17,7 @@ if __name__ == '__main__':
...
@@ -17,6 +17,7 @@ if __name__ == '__main__':
names
=
sys
.
argv
[
1
:]
names
=
sys
.
argv
[
1
:]
if
len
(
names
)
==
0
:
if
len
(
names
)
==
0
:
names
=
sorted
(
os
.
listdir
(
'.'
))
names
=
sorted
(
os
.
listdir
(
'.'
))
if
'blackjack.decaf'
in
names
:
names
.
remove
(
'blackjack.decaf'
)
names
.
remove
(
'blackjack.decaf'
)
for
name
in
names
:
for
name
in
names
:
bname
,
ext
=
os
.
path
.
splitext
(
name
)
bname
,
ext
=
os
.
path
.
splitext
(
name
)
...
@@ -45,7 +46,7 @@ if __name__ == '__main__':
...
@@ -45,7 +46,7 @@ if __name__ == '__main__':
info
=
'OK :)'
info
=
'OK :)'
else
:
else
:
info
=
'ERROR!'
info
=
'ERROR!'
print
(
'{0:<
2
0}{1}'
.
format
(
name
,
info
))
print
(
'{0:<
6
0}{1}'
.
format
(
name
,
info
))
if
os
.
name
==
'nt'
:
if
os
.
name
==
'nt'
:
print
(
'Press Enter to continue...'
)
print
(
'Press Enter to continue...'
)
try
:
try
:
...
...
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