List:Commits« Previous MessageNext Message »
From:gkrishna Date:January 11 2006 7:14am
Subject:bk commit into 5.0 tree (kp:1.2026)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of kp. When kp does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2026 06/01/11 12:44:02 kp@stripped[kp] +1 -0
  autoclose-testrun.patch

  netware/mysql_test_run.c
    1.25 06/01/09 15:44:42 kp@stripped[kp] +13 -6
    Import patch autoclose-testrun.patch

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	kp
# Host:	blr-techserv.blr.novell.com
# Root:	/home/kp/blr-engrlinux/bk/new/mysql-5.0_repair/mysql_5.0_repair

--- 1.24/netware/mysql_test_run.c	2006-01-06 20:08:33 +05:30
+++ 1.25/netware/mysql_test_run.c	2006-01-09 15:44:42 +05:30
@@ -1190,7 +1190,7 @@
 ******************************************************************************/
 int main(int argc, char **argv)
 {
-  int is_ignore_list = 0;
+  int is_ignore_list = 0, autoclose = 0, individual_execution = 0;
   // setup
   setup(argv[0]);
   
@@ -1237,16 +1237,22 @@
   {
     int i;
 
-    // single test
-    single_test = TRUE;
-
     for (i = 1 + is_ignore_list; i < argc; i++)
     {
+      if (!strncasecmp(argv[i], "--autoclose", 11))
+      {
+        autoclose = 1;
+        continue;
+      }
+      // single test
+      single_test = TRUE;
+      individual_execution = 1;
+
       // run given test
       run_test(argv[i]);
     }
   }
-  else
+  if (!individual_execution)
   {
     // run all tests
     DIR *dir = opendir(test_dir);
@@ -1298,7 +1304,8 @@
   if (log_fd) fclose(log_fd);
 
   // keep results up
-  pressanykey();
+  if (!autoclose)
+    pressanykey();
 
   return 0;
 }
Thread
bk commit into 5.0 tree (kp:1.2026)gkrishna11 Jan