Skip to content

Commit

Permalink
Run all tests when no last successful commit.
Browse files Browse the repository at this point in the history
(cherry picked from commit 2e56035)
  • Loading branch information
mattclay committed Dec 8, 2016
1 parent fa5386c commit 1c9a58a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/runner/lib/changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ def __init__(self, args, git):
else:
merge_runs = self.get_merge_runs(self.project_id, self.branch)
last_successful_commit = self.get_last_successful_commit(merge_runs)
self.paths = sorted(git.get_diff_names([last_successful_commit, self.commit]))

if last_successful_commit:
self.paths = sorted(git.get_diff_names([last_successful_commit, self.commit]))
else:
# tracked files (including unchanged)
self.paths = sorted(git.get_file_names(['--cached']))

def get_merge_runs(self, project_id, branch):
"""
Expand Down

0 comments on commit 1c9a58a

Please sign in to comment.