From 353dff3141e8e0ea3d92ef63f74bcd3729febb42 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 29 Aug 2015 08:30:26 -0400 Subject: Accommodate strange ShiningPanda logic if we are running under Jenkins. #404 --- coverage/html.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'coverage/html.py') diff --git a/coverage/html.py b/coverage/html.py index 8c306c62..de18cefa 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -381,6 +381,13 @@ class HtmlStatus(object): with open(status_file, "w") as fout: json.dump(status, fout) + # Older versions of ShiningPanda look for the old name, status.dat. + # Accomodate them if we are running under Jenkins. + # https://issues.jenkins-ci.org/browse/JENKINS-28428 + if "JENKINS_URL" in os.environ: + with open(os.path.join(directory, "status.dat"), "w") as dat: + dat.write("https://issues.jenkins-ci.org/browse/JENKINS-28428\n") + def settings_hash(self): """Get the hash of the coverage.py settings.""" return self.settings -- cgit v1.2.1