1. 04 4月, 2018 1 次提交
  2. 27 11月, 2017 1 次提交
  3. 21 9月, 2015 1 次提交
    • L
      tp-qemu: Import cleanups · 288ce897
      Lucas Meneghel Rodrigues 提交于
      Clean up imports across the board in tp-qemu. The criteria
      followed was:
      
      1) Remove unnecessary imports
      2) Turn multi imports from a single entry point to one
         import per line. This increases both patch and
         source code readability.
      3) Separate blocks of imports with a line:
         * Python standard library imports
         * Autotest imports
         * virttest imports
         * Internal tp-qemu imports
      4) Remove try/except blocks refering autotest libs and
         stick with the virttest.staging copy
      
      This paves the way for the future removal of autotest
      references, replacing those references with avocado ones.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      288ce897
  4. 21 1月, 2015 1 次提交
  5. 02 9月, 2014 1 次提交
  6. 19 12月, 2013 1 次提交
    • C
      virt: change test entry point method name · 6124219f
      Cleber Rosa 提交于
      There's no need to have the name of the "run_<name>" method (main
      test entry point) depend on the test name. So, for simplicity sake,
      let's just name the test entry point "run".
      
      I have decided to not fallback gracefully to the previous naming
      convention as I believe this can lead to confusion in the future.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6124219f
  7. 04 11月, 2013 1 次提交
  8. 10 9月, 2013 1 次提交
  9. 09 9月, 2013 1 次提交
    • L
      PEP8 mass fixes · 2017db91
      Lucas Meneghel Rodrigues 提交于
      With the help of the PEP8 script, a semi-automated clean
      of the code base was made, and effectively changing some
      of the coding style rules of our code base:
      
       * No more 2 lines spacing among functions
       * No more combined module imports
      
      In the end, it was going to be too difficult to take
      into consideration E501 (line length > 80) errors and
      W601 (.has_key() is deprecated), so these were ignored,
      at least for now.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      2017db91
  10. 06 6月, 2013 3 次提交
  11. 08 5月, 2013 2 次提交
    • M
      virt.qemu.enospc:Fix the image_name change errors · a6a97af8
      Mike Qiu 提交于
      Currently, the image_name has changed, the old fashion is like:
      /tmp/kvm_autotest_root/images/f18-64, but the new is
      images/f18-64.
      
      In test, need to use data_dir to get the images dir.
      Signed-off-by: NMike Qiu <qiudayu@linux.vnet.ibm.com>
      a6a97af8
    • M
      qemu.tests.enospc: Fixed 'fuser -k' failed bug · ecb35132
      Mike Qiu 提交于
      Currently, when running the tests while the clean
      up didn't run on the previous, it will raise an
      error like:
      
      Test failed: CmdError:
      Command <fuser -k /dev/vg_kvm_test_enospc/lv_kvm_test_enospc>
      failed, rc=1, Command returned non-zero exit status
      [context: performing enospc setup --> performing enospc cleanup]
      * Command:
          fuser -k /dev/vg_kvm_test_enospc/lv_kvm_test_enospc
      Exit status: 1
      Duration: 0.0501132011414
      
      That is the link /dev/vg_kvm_test_enospc/lv_kvm_test_enospc
      exist, but no user. thus the command line:
          fuser -k /dev/vg_kvm_test_enospc/lv_kvm_test_enospc
      will return 1(fuser will always return none-zero for nobody use).
      
      So just ignore the return status of the fuser.
      Signed-off-by: NMike Qiu <qiudayu@linux.vnet.ibm.com>
      ecb35132
  12. 04 4月, 2013 1 次提交
    • L
      qemu.tests: Use params[] for required params · a9f0d2c5
      Lukáš Doktor 提交于
      This patch benefits from the better error message when key is missing
      in config params. Instead of custom handling of missing param it
      uses params[] directly.
      
      I modified those params, where I was 100% certain that they are
      required and doesn't have default value:
       * val = params.get(..) followed by if not val: raise...
       * int(params.get(...))
       * params.get(...).split()
       * commands which require string (eg. session.cmd(params.get(...)))
      
      I didn't test all the tests before and after in order to verify
      possible typos but I used pylint before and after, watching for
      new errors (code rate before and after).
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      a9f0d2c5
  13. 29 12月, 2012 1 次提交
  14. 25 12月, 2012 2 次提交
  15. 03 11月, 2012 1 次提交
    • M
      kvm.tests.enospc:Fix the test cleanup fail · 98917254
      Mike Qiu 提交于
      Currently, When run the test and do some clenup steps it always fail
      with lvremove command, because the lv is in used.
      Actually, the tests do fuser -k to kill users. but the it is a link
      not a file as it check if it is a file.
      
      So change the os.path.isfile to os.path.islink.
      Signed-off-by: NMike Qiu <qiudayu@linux.vnet.ibm.com>
      98917254
  16. 07 9月, 2012 2 次提交