Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Sort results of compliance suite testing
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2589
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Aug 6, 2018
1 parent 94cae26 commit 7d6cb6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Examples/ComplianceSuite.py
Expand Up @@ -6,6 +6,7 @@
import simplejson
import subprocess
import time
from natsort import natsorted

def readTest(f, expectedFailures):
cl = ".".join(f.split(".")[:-1])
Expand Down Expand Up @@ -55,7 +56,7 @@ def readTest(f, expectedFailures):
expectedFailures = set(l.strip() for l in fin.readlines())
print(expectedFailures)

res = [readTest(f, expectedFailures) for f in glob.glob("*.res")]
res = [readTest(f, expectedFailures) for f in natsorted(glob.glob("*.res"))]

(tcs1,tcs2,failures) = zip(*res)
ts1 = TestSuite(version, tcs1)
Expand Down

0 comments on commit 7d6cb6d

Please sign in to comment.