util_test.libguestfs: Support choosing disk or domain in VirtTools.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Supplements for guestmount test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest: Add disable for warning color

Warning color is added but missed in disable. This will cause trouble
when pipe stdout into file.

Signed-off-by: Hao Liu <hliu@redhat.com>
autotest regression test: default to master branch

Since the next branch does not exist anymore.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
autotest regression test: fetch the installer script from the chosen branch

If using the github repo URL. If not, default to the script on the github
master branch.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Merge pull request #1191 from Hao-Liu/fix_warn_color

virttest: Add disable for warning color
virt: Fix hanging tail_threads which are created by recreating env.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #1157 from yumingfei/enhance_guestmount

Libguestfs: supplements of guestmount test.
Merge pull request #1195 from clebergnu/autotest_regression_branch

Autotest regression test
Merge pull request #1197 from jzupka/fix_tail_threads

virt: Fix hanging tail_threads which are created by recreating env.
virttest.virsh: Add virsh filter group functions

Add five network filter functions under filter group

Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt.test: Add virsh nwfilter-dumpxml test

Simply dump network filter xml with normal and error test

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.libvirt_xml.devices.librarian: Add network filter types

Add multiple network filter protocol types into device list, use
the librarian module to load network filter specific protocol
type modules.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.libvirt_xml.devices: Add network filter rule protocol modules

Add 24 libvirt nwfilter protocols modules for supported types.

This is for cover nwfilter rule protocols in page:
http://libvirt.org/formatnwfilter.html#nwfelemsRulesProto

Note:
Total number of libvirt supported protocols is 25, only igmp-ipv6
(fail for define, need confirm bug) is not included in this commit.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.libvirt_xml: Add nwfilter xml module

Module simplifying manipulation of XML described at
http://libvirt.org/formatnwfilter.html

Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt.tests: Add virsh nwfilter define case

- Add virsh nwfilter define case
  The case support process multiple rules for define one filter xml.

  Only check whether the filter config xml exist or not after define
  and check the filter is in nwfilter-list command output.

  Why not strict check each attribue in xml:
    1. each attribute in xml might have default value if not set.
    2. if the attribute value is out of boundary (not valid value),
       define action will omit the attribute.
    3. protocols have different attributes which is a super big
       matrix to check each detail one

- Add virsh nwfilter define cfg
  25 positive cases including 1 update define case and 24 protocol
  type xml test.
  include 3 negative cases.

  The rule parameter in cfg should be like:
  for only 1 rule:
    rule = "rule_action=accept rule_direction=out protocol=mac EOL"
  each rule should end with string 'EOL' for split.

  Test Data:
    TESTS: 28
    CLEANUP: PASS (0.00 s)
    TOTAL TIME: 26.68 s
    TESTS PASSED: 28
    TESTS FAILED: 0
    SUCCESS RATE: 100.00 %

Signed-off-by: Wayne Sun <gsun@redhat.com>