List:Commits« Previous MessageNext Message »
From:pkarthick Date:January 17 2006 6:48am
Subject:bk commit into 4.0 tree (pkarthick:1.2171)
View as plain text  
Below is the list of changes that have just been committed into a local
4.0 repository of prem. When prem 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.2171 06/01/17 12:18:29 pkarthick@stripped[prem] +1 -0
  autoclose-testrun.patch

  netware/mysql_test_run.c
    1.10 06/01/09 15:44:42 pkarthick@stripped[prem] +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:	pkarthick
# Host:	blr-naas-nwl04.blr.novell.com
# Root:	/home/prem/bk/mysql-4.0

--- 1.9/netware/mysql_test_run.c	2005-10-25 19:26:21 +05:30
+++ 1.10/netware/mysql_test_run.c	2006-01-09 15:44:42 +05:30
@@ -1160,7 +1160,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]);
   
@@ -1205,16 +1205,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);
@@ -1266,7 +1272,8 @@
   if (log_fd) fclose(log_fd);
 
   // keep results up
-  pressanykey();
+  if (!autoclose)
+    pressanykey();
 
   return 0;
 }
Thread
bk commit into 4.0 tree (pkarthick:1.2171)pkarthick17 Jan