Test runner should only run test-*.js

This commit is contained in:
Ryan Dahl
2009-11-17 15:04:20 +01:00
parent 6e6562e551
commit 6cb0e0e5f5

View File

@@ -75,7 +75,7 @@ class MjsunitTestConfiguration(test.TestConfiguration):
def Ls(self, path):
def SelectTest(name):
return name.endswith('.js') and name != 'mjsunit.js'
return name.startswith('test-') and name.endswith('.js')
return [f[:-3] for f in os.listdir(path) if SelectTest(f)]
def ListTests(self, current_path, path, mode):