Fwd: [PATCH] Added reboot, upgrade, user, zerombr test cases.

Chris Lumens clumens at redhat.com
Mon Feb 9 19:23:26 UTC 2009


> +class FC3_TestCase(CommandTest):
> +    def runTest(self):
> +        # pass
> +        self.assert_parse("reboot", "reboot\n")
> +        self.assert_parse("shutdown", "shutdown\n")
> +
> +        # fail
> +
> +
> +class FC6_TestCase(FC3_TestCase):
> +    def runTest(self):
> +        # pass
> +        self.assert_parse("reboot --eject", "reboot --eject\n")
> +        self.assert_parse("shutdown --eject", "shutdown --eject\n")
> +
> +        # fail
> +
> +

This one can also be called as halt or poweroff, so we should definitely
make sure to handle those cases too.  I've applied all the rest.

- Chris




More information about the Kickstart-list mailing list