Permalink
Browse files

Improve run-ci's change detection (again)

  • Loading branch information...
hamiltont committed Aug 6, 2014
1 parent 8174939 commit 4c862733e892f68d9e5df6fb12f66c5da150a406
Showing with 2 additions and 2 deletions.
  1. +2 −2 toolset/run-ci.py
View
@@ -82,14 +82,14 @@ def _should_run(self):
'''
# Look for changes to core TFB framework code
find_tool_changes = "git diff --name-only %s | grep '^toolset' | wc -l" % self.commit_range
find_tool_changes = "git diff --name-only %s | grep '^toolset/' | wc -l" % self.commit_range
changes = subprocess.check_output(find_tool_changes, shell=True)
if int(changes) != 0:
log.info("Found changes to core framework code")
return True
# Look for changes relevant to this test
find_test_changes = "git diff --name-only %s | grep '^%s' | wc -l" % (self.commit_range, self.test.directory)
find_test_changes = "git diff --name-only %s | grep '^%s/' | wc -l" % (self.commit_range, self.test.directory)
changes = subprocess.check_output(find_test_changes, shell=True)
if int(changes) == 0:
log.info("No changes found for %s", self.name)

0 comments on commit 4c86273

Please sign in to comment.