[pykickstart] Add tests for bootloader --boot-drive.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 tests/commands/bootloader.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/tests/commands/bootloader.py b/tests/commands/bootloader.py
index 3905cce..d3ac7ab 100644
--- a/tests/commands/bootloader.py
+++ b/tests/commands/bootloader.py
@@ -112,6 +112,15 @@ class F15_TestCase(F14_TestCase):
         self.assert_parse("bootloader --password=blahblah --iscrypted", "bootloader --location=mbr --password=\"blahblah\" --iscrypted\n")
         self.assert_parse("bootloader --md5pass=blahblah", "bootloader --location=mbr --password=\"blahblah\" --iscrypted\n")
 
+class F17_TestCase(F15_TestCase):
+    def runTest(self, iscrypted=False):
+        # run parent tests
+        F15_TestCase.runTest(self, iscrypted=iscrypted)
+
+        self.assert_parse("bootloader --location=mbr --boot-drive=/dev/sda")
+        self.assert_parse("bootloader --location=mbr --boot-drive=sda")
+        self.assert_parse("bootloader --location=mbr --boot-drive=/dev/disk/by-path/pci-0000:00:0e.0-scsi-0:0:0:0")
+
 class RHEL5_TestCase(FC4_TestCase):
     def runTest(self, iscrypted=False):
         FC4_TestCase.runTest(self, iscrypted)
-- 
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux