-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #503 from sammj/m-m-multidisk
OpTestQemu: Better PHB handling, multi-disk setups, proper NIC support
- Loading branch information
Showing
2 changed files
with
123 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env python2 | ||
|
||
import time | ||
import unittest | ||
|
||
import OpTestConfiguration | ||
from common.OpTestUtil import OpTestUtil | ||
from common.OpTestSystem import OpSystemState | ||
from common.OpTestError import OpTestError | ||
from common.OpTestKeys import OpTestKeys as keys | ||
|
||
class ManyDisksTestCase(unittest.TestCase): | ||
def setUp(self): | ||
conf = OpTestConfiguration.conf | ||
self.system = conf.system() | ||
self.bmc = conf.bmc() | ||
|
||
if OpTestConfiguration.conf.args.bmc_type != "qemu": | ||
self.skipTest("10,000 disks requires QEMU") | ||
|
||
# Realistically you probably don't have a machine on hand that has the | ||
# memory to do 10,000 disks. This starts at five, change this number to | ||
# push it further. | ||
for i in range(1,5): | ||
self.bmc.add_temporary_disk("500K") | ||
|
||
self.system.goto_state(OpSystemState.PETITBOOT_SHELL) | ||
|
||
def testListDisks(self): | ||
c = self.system.console | ||
|
||
c.run_command("ls -l /dev/vd* | wc -l") |