diff options
author | Matt Clay <matt@mystile.com> | 2016-12-06 12:59:48 -0500 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2016-12-08 10:13:02 -0500 |
commit | e534a597d764eef6eb2ad477b4166f9af5f46115 (patch) | |
tree | 25212f43c5a41d92799d3b7ae569b5de2af5cea6 | |
parent | 174f9a18785d7fb4451c267af6c43ff12b40b7e5 (diff) | |
download | ansible-revert-and-copy.tar.gz |
Run all tests when no last successful commit.revert-and-copy
-rw-r--r-- | test/runner/lib/changes.py | 7 |
1 files changed, 6 insertions, 1 deletions
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): """ |