Revision c072e788

b/qa/ganeti-qa.py
108 108
  else:
109 109
    tstart = datetime.datetime.now()
110 110
    desc = _DescriptionOf(fn)
111
    # TODO: Formatting test names when non-string names are involved
111 112
    print _FormatHeader("%s skipping %s, test(s) %s disabled" %
112 113
                        (tstart, desc, testnames))
113 114

  
b/qa/qa_config.py
475 475
      value = _TestEnabledInner(check_fn, name.tests, compat.any)
476 476
    elif isinstance(name, (list, tuple)):
477 477
      value = _TestEnabledInner(check_fn, name, compat.all)
478
    elif callable(name):
479
      value = name()
478 480
    else:
479 481
      value = check_fn(name)
480 482

  
b/test/py/qa.qa_config_unittest.py
142 142
          },
143 143
        }))
144 144

  
145
  def testCallable(self):
146
    self.assertTrue(qa_config.TestEnabled([lambda: True], _cfg={}))
147

  
148
    for value in [None, False, "", 0]:
149
      self.assertFalse(qa_config.TestEnabled(lambda: value, _cfg={}))
150

  
145 151

  
146 152
class TestQaConfigLoad(unittest.TestCase):
147 153
  def setUp(self):

Also available in: Unified diff