From cceebc67f1377644b02da0ab50bc7d482eeb9cab Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 23 Feb 2009 14:26:10 -0700 Subject: 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 --- super-intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'super-intel.c') 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 */ -- cgit