Skip to content

Commit

Permalink
Made test ignore conftest files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv3n committed Sep 8, 2015
1 parent 197f580 commit 42c83b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ test/libdrampowertest/library_test
*.gcda
traces/*
traces.zip
.sconf_temp/
.sconsign.dblite
2 changes: 1 addition & 1 deletion test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_make_clean_removes_compiler_output(self):
pattern = '*.[oad]'
for root, dirnames, files in os.walk('.'):
for f in files:
count += 1 if fnmatch.fnmatch(f, pattern) else 0
count += 1 if fnmatch.fnmatch(f, pattern) and not f.startswith('conftest') else 0
self.assertEqual(count, 0, msg=self.shortDescription())

if __name__ == '__main__':
Expand Down

0 comments on commit 42c83b8

Please sign in to comment.