[Box Backup-commit] COMMIT r3171 - box/trunk/infrastructure

subversion at boxbackup.org subversion at boxbackup.org
Wed Aug 21 23:45:37 BST 2013


Author: chris
Date: 2013-08-21 23:45:36 +0100 (Wed, 21 Aug 2013)
New Revision: 3171

Modified:
   box/trunk/infrastructure/buildenv-testmain-template.cpp
Log:
Add support for the -W option to test runner executable.


Modified: box/trunk/infrastructure/buildenv-testmain-template.cpp
===================================================================
--- box/trunk/infrastructure/buildenv-testmain-template.cpp	2013-08-21 01:00:23 UTC (rev 3170)
+++ box/trunk/infrastructure/buildenv-testmain-template.cpp	2013-08-21 22:45:36 UTC (rev 3171)
@@ -248,7 +248,7 @@
 	
 	int ch;
 	
-	while ((ch = getopt_long(argc, argv, "c:d:qs:t:vPTUV", longopts, NULL))
+	while ((ch = getopt_long(argc, argv, "c:d:qs:t:vPTUVW:", longopts, NULL))
 		!= -1)
 	{
 		switch(ch)
@@ -320,6 +320,17 @@
 			}
 			break;
 
+			case 'W':
+			{
+				logLevel = Logging::GetNamedLevel(optarg);
+				if (logLevel == Log::INVALID)
+				{
+					BOX_FATAL("Invalid logging level: " << optarg);
+					return 2;
+				}
+			}
+			break;
+
 			case 't':
 			{
 				Logging::SetProgramName(optarg);




More information about the Boxbackup-commit mailing list