validate: launcher: Modify the order of the parser argument

Modify the order of the parser argument before setting dir_group

https://bugzilla.gnome.org/show_bug.cgi?id=786715
This commit is contained in:
Jimmy Ohn 2017-08-24 14:17:08 +09:00 committed by Thibault Saunier
parent 4dc95f0fc2
commit bd0e8e410e

View file

@ -464,11 +464,11 @@ Note that all testsuite should be inside python modules, so the directory should
" in a virtual framebuffer." " in a virtual framebuffer."
" Note that it is currently implemented only" " Note that it is currently implemented only"
" for the X server thanks to Xvfb (which is requeried in that case)") " for the X server thanks to Xvfb (which is requeried in that case)")
parser.add_argument('--xunit-file', dest='xunit_file',
action='store', metavar="FILE",
help=("Path to xml file to store the xunit report in."))
dir_group = parser.add_argument_group( dir_group = parser.add_argument_group(
"Directories and files to be used by the launcher") "Directories and files to be used by the launcher")
parser.add_argument('--xunit-file', action='store',
dest='xunit_file', metavar="FILE",
help=("Path to xml file to store the xunit report in."))
dir_group.add_argument("-M", "--main-dir", dest="main_dir", dir_group.add_argument("-M", "--main-dir", dest="main_dir",
help="Main directory where to put files. Default is %s" % DEFAULT_MAIN_DIR) help="Main directory where to put files. Default is %s" % DEFAULT_MAIN_DIR)
dir_group.add_argument("--testsuites-dir", dest="testsuites_dirs", action='append', dir_group.add_argument("--testsuites-dir", dest="testsuites_dirs", action='append',