diff tests/dumbhttp.py @ 28451:c90cfe76e024

serve: accept multiple values for --daemon-postexec The next patch will add another postexec command: chdir, which can be used together with unlink. This patch changes the option type of --daemon-postexec from string to list to accept multiple commands. The error message of invalid --daemon-postexec value is also changed to include the actual invalid value.
author Jun Wu <quark@fb.com>
date Wed, 09 Mar 2016 02:07:40 +0000
parents 7623ba92af72
children 9366b18ba103
line wrap: on
line diff
--- a/tests/dumbhttp.py	Sat Feb 27 12:56:26 2016 +0100
+++ b/tests/dumbhttp.py	Wed Mar 09 02:07:40 2016 +0000
@@ -38,7 +38,7 @@
     parser.add_option('-f', '--foreground', dest='foreground',
         action='store_true',
         help='do not start the HTTP server in the background')
-    parser.add_option('--daemon-postexec')
+    parser.add_option('--daemon-postexec', action='append')
 
     (options, args) = parser.parse_args()