[pykickstart][rhel6-branch] Add clearpart --cdl option. (#1182624)
Brian C. Lane
bcl at redhat.com
Thu Jan 22 01:21:04 UTC 2015
On Wed, Jan 21, 2015 at 10:55:29AM -0500, Samantha N. Bueno wrote:
> > This should be moved to a RHEL6 testcase that inherits from the FC3 one.
>
> Oops, I can't believe I forgot about this one, thanks. So here is just
> the test file portion then:
>
> diff --git a/tests/commands/clearpart.py b/tests/commands/clearpart.py
> index f4e6076..2d93b89 100644
> --- a/tests/commands/clearpart.py
> +++ b/tests/commands/clearpart.py
> @@ -34,5 +34,20 @@ class FC3_TestCase(CommandTest):
> # nonsensical parameter test
> self.assert_parse_error("clearpart --cheese")
>
> +class RHEL6_TestCase(FC3_TestCase):
> + def runTest(self):
> + FC3_TestCase.runTest(self)
> +
> + # pass
> + self.assert_parse("clearpart --all --cdl", "clearpart --all --cdl \n")
> + self.assert_parse("clearpart --all --cdl --drives=dasda,dasdb,dasdc", "clearpart --all --cdl --drives=dasda,dasdb,dasdc \n")
> +
> + # Big Everything Test
> + self.assert_parse("clearpart --drives=dasda,dasdb,dasdc --all --linux --cdl --initlabel", "clearpart --linux --cdl --initlabel --drives=dasda,dasdb,dasdc \n")
> +
> + # fail
> + # cdl should not take a value
> + self.assert_parse_error("clearpart --cdl=foo")
> +
> if __name__ == "__main__":
> unittest.main()
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
Ack
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list