From 1c9a58a885f322d0e4b9c03697f344b2fe9f05d0 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 6 Dec 2016 12:59:48 -0500 Subject: [PATCH] Run all tests when no last successful commit. (cherry picked from commit 2e56035fddfd04eb084bd977fc1ee2f35c2f5283) --- test/runner/lib/changes.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/runner/lib/changes.py b/test/runner/lib/changes.py index 019b51e0f7..032753bbda 100644 --- a/test/runner/lib/changes.py +++ b/test/runner/lib/changes.py @@ -71,7 +71,12 @@ class ShippableChanges(object): 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): """