fix testsuite name bugs and improve some ui details
[bottlenecks.git] / test-scheduler / server / src / test_parser.py
index af0134a..e4a426b 100644 (file)
@@ -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']