1. 22 10月, 2012 9 次提交
  2. 19 10月, 2012 6 次提交
  3. 18 10月, 2012 3 次提交
  4. 17 10月, 2012 1 次提交
  5. 11 10月, 2012 2 次提交
  6. 10 10月, 2012 1 次提交
  7. 09 10月, 2012 6 次提交
  8. 08 10月, 2012 4 次提交
  9. 05 10月, 2012 1 次提交
  10. 03 10月, 2012 6 次提交
  11. 02 10月, 2012 1 次提交
    • L
      utils_misc: Env class changes and new unittests · 2011d206
      Lucas Meneghel Rodrigues 提交于
      As part of the work to resolve the issue:
      
      https://github.com/autotest/autotest/issues/555
      
      I've started to write unittests for the Env class,
      and those unittests started to show some small
      problems on that class.
      
      So, create a new set of unittests for Env, and
      modify it in the following ways:
      
      1) Env._filename will always get set, to avoid
      an Env object instantiated with no filename passed
      to the constructor can be saved if no filename
      was passed to the save() method;
      2) All set/get operations will now be performed
      in Env.data, for safety
      3) The get_all_vms method was depending on a not
      quite correct is_vm() function, that was checking
      the name of the class of the object, while the
      proper way to do it would be calling isinstance,
      instead since we guarantee all vm keys will
      start with vm__, use that instead, creating a
      more correct and more testable method.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      2011d206