diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-02-23 14:26:10 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-02-23 14:26:10 -0700 |
commit | cceebc67f1377644b02da0ab50bc7d482eeb9cab (patch) | |
tree | 807038209430fc04b99c192f75d0cbb24e1fe228 /super-intel.c | |
parent | 5a03814040095c0eaf576ce5530ade93a2b558d0 (diff) | |
download | mdadm-cceebc67f1377644b02da0ab50bc7d482eeb9cab.tar.gz mdadm-cceebc67f1377644b02da0ab50bc7d482eeb9cab.tar.xz mdadm-cceebc67f1377644b02da0ab50bc7d482eeb9cab.zip |
imsm: provide a simulated option-rom for regression tests
IMSM_NO_PLATFORM turns off checks that should be tested, so provide a
IMSM_TEST_OROM variable to allow testing the orom constraints in the
mdadm regression suite.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index f169515..864a9e9 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1842,7 +1842,7 @@ static struct intel_super *alloc_super(int creating_imsm) super->create_offset = ~((__u32 ) 0); if (!check_env("IMSM_NO_PLATFORM")) super->orom = find_imsm_orom(); - if (super->orom) { + if (super->orom && !check_env("IMSM_TEST_OROM")) { struct sys_dev *list, *ent; /* find the first intel ahci controller */ |