Test for Jenkins env
authorBrian Aker <brian@tangent.org>
Sat, 11 Feb 2012 22:36:02 +0000 (14:36 -0800)
committerBrian Aker <brian@tangent.org>
Sat, 11 Feb 2012 22:36:02 +0000 (14:36 -0800)
libtest/test.cc

index 80cb8ddd64f30fee70ad949c335ebba24e1ae7bc..2096ad19dcf4e7bd6797f717909be921c153f5fe 100644 (file)
@@ -79,6 +79,10 @@ int main(int argc, char *argv[])
   {
     close(STDOUT_FILENO);
   }
+  else if (getenv("JENKINS_URL"))
+  {
+    close(STDOUT_FILENO);
+  }
 
   char buffer[1024];
   if (getenv("LIBTEST_TMP"))