From 77809f49ed05c4f6822613be044c8c604ad8b134 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Thu, 10 Jun 2021 14:07:43 -0700 Subject: [PATCH] Make model zoo test weekly (#1004) Change-Id: I1c73df17cb077b9ce8905fcc2fc8bbb37b9688d8 --- .../ai/djl/integration/tests/model_zoo/ModelZooTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integration/src/main/java/ai/djl/integration/tests/model_zoo/ModelZooTest.java b/integration/src/main/java/ai/djl/integration/tests/model_zoo/ModelZooTest.java index fd245d065db..e69b33e0804 100644 --- a/integration/src/main/java/ai/djl/integration/tests/model_zoo/ModelZooTest.java +++ b/integration/src/main/java/ai/djl/integration/tests/model_zoo/ModelZooTest.java @@ -23,6 +23,7 @@ import ai.djl.util.Utils; import java.io.IOException; import java.nio.file.Paths; +import java.util.Calendar; import java.util.List; import java.util.ServiceLoader; import org.testng.SkipException; @@ -49,7 +50,10 @@ public void tearDown() { @Test public void testDownloadModels() throws IOException, ModelException { if (!Boolean.getBoolean("nightly") || Boolean.getBoolean("offline")) { - throw new SkipException("Nightly only"); + throw new SkipException("Weekly only"); + } + if (Calendar.SATURDAY == Calendar.getInstance().get(Calendar.DAY_OF_WEEK)) { + throw new SkipException("Weekly only"); } ServiceLoader providers = ServiceLoader.load(ZooProvider.class);