Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2018-01-23 06:32:55 +0000
committerSravan Kumar Lakkimsetti2018-01-23 06:38:14 +0000
commitfb93b13562d3d7fa74c14358eaf2a68ea98a1682 (patch)
tree56055fc4e5a8da7ed7b644f92c2fe2bd01b0366e
parent75b1d5e2ee678f44cbda5bf092fe622804bd0d40 (diff)
downloadeclipse.platform.releng-fb93b13562d3d7fa74c14358eaf2a68ea98a1682.tar.gz
eclipse.platform.releng-fb93b13562d3d7fa74c14358eaf2a68ea98a1682.tar.xz
eclipse.platform.releng-fb93b13562d3d7fa74c14358eaf2a68ea98a1682.zip
Bug 321996 - Add a test to the build that fails in case of unsigned JARS4_8_0_M5I20180124-2000I20180124-0800I20180123-2000I20180123-1010I20180123-0800
Change-Id: Ibace9a99fa98418c9aa3c43599acf34400acb19d Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--bundles/org.eclipse.releng.tests/src/org/eclipse/releng/tests/BuildTests.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.releng.tests/src/org/eclipse/releng/tests/BuildTests.java b/bundles/org.eclipse.releng.tests/src/org/eclipse/releng/tests/BuildTests.java
index b015f421..c1a1e489 100644
--- a/bundles/org.eclipse.releng.tests/src/org/eclipse/releng/tests/BuildTests.java
+++ b/bundles/org.eclipse.releng.tests/src/org/eclipse/releng/tests/BuildTests.java
@@ -654,12 +654,13 @@ public class BuildTests {
URLConnection urlConnection = logURL.openConnection();
long nBytes = urlConnection.getContentLength();
- // if find "response does not contain length, on a regular basis, for
- // some servers, will have to read contents.
+ // nBytes will be -1 if the file doesn't exist
+ // it will be more than 3 if there are unsigned jars. (atlear jar extention will be listed
+
assertTrue(
"Some bundles are unsigned please refer "
+ urlOfFile,
- ((-1 == nBytes)));
+ ((2 > nBytes)));
}
private String getDownloadHost() {

Back to the top