comparison tests/run-tests.py @ 25048:6b8ddf896463

run-tests: refer to test.bname when sniffing for keywords
author Augie Fackler <augie@google.com>
date Mon, 13 Apr 2015 16:30:40 -0400
parents 8c7e938c8146
children 55f1ac2797cc
comparison
equal deleted inserted replaced
25047:8c7e938c8146 25048:6b8ddf896463
1403 result.addIgnore(test, 'not retesting') 1403 result.addIgnore(test, 'not retesting')
1404 continue 1404 continue
1405 1405
1406 if self._keywords: 1406 if self._keywords:
1407 f = open(test.path, 'rb') 1407 f = open(test.path, 'rb')
1408 t = f.read().lower() + test.name.lower() 1408 t = f.read().lower() + test.bname.lower()
1409 f.close() 1409 f.close()
1410 ignored = False 1410 ignored = False
1411 for k in self._keywords.lower().split(): 1411 for k in self._keywords.lower().split():
1412 if k not in t: 1412 if k not in t:
1413 result.addIgnore(test, "doesn't match keyword") 1413 result.addIgnore(test, "doesn't match keyword")