summaryrefslogtreecommitdiffstats
path: root/test-scheduler/server/src/test_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'test-scheduler/server/src/test_parser.py')
-rw-r--r--test-scheduler/server/src/test_parser.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test-scheduler/server/src/test_parser.py b/test-scheduler/server/src/test_parser.py
index af0134a7..e4a426b1 100644
--- a/test-scheduler/server/src/test_parser.py
+++ b/test-scheduler/server/src/test_parser.py
@@ -44,7 +44,12 @@ def parse(filepath):
return workflowId
-def parseTestcase(schema, tcName='testcase0'):
+def parseTestcase(schema, tcName='testcase0.yaml'):
+ try:
+ tcName.decode('ascii')
+ except Exception, e:
+ print e
+ tcName = 'testcase0.yaml'
if schema is None:
return parseLog(False, reason='schema not found.')
steps = schema['steps']