From: Satheesh Rajendran <[email protected]>
Signed-off-by: Satheesh Rajendran <[email protected]> --- run | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/run b/run index ac6ac49..d73de89 100755 --- a/run +++ b/run @@ -266,6 +266,11 @@ class VirtTestRunParser(optparse.OptionParser): help=("List of space separated no filters to be " "passed to the config parser. If -c is " "provided, this will be ignored")) + qemu.add_option("--glusterfs_support", action="store_true", + dest="gluster", default=False, + help=("Whether to enable glusterfs support" + "Default: False")) + self.add_option_group(qemu) @@ -432,6 +437,14 @@ class VirtTestApp(object): logging.info("Config provided, ignoring --disk-bus option") + def _process_gluster_support(self): + if not self.options.config: + if self.options.gluster: + self.cartesian_parser.only_filter("glusterfs_support") + else: + self.cartesian_parser.only_filter("no_glusterfs_support") + + def _process_qemu_specific_options(self): """ Calls for processing all options specific to the qemu test. @@ -447,7 +460,7 @@ class VirtTestApp(object): self._process_image_type() self._process_nic_model() self._process_disk_buses() - + self. _process_gluster_support() def _process_guest_os(self): if not self.options.config: -- 1.7.1 _______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
