1. 13 4月, 2018 3 次提交
  2. 12 4月, 2018 2 次提交
  3. 11 4月, 2018 2 次提交
  4. 13 12月, 2017 2 次提交
  5. 28 4月, 2016 1 次提交
  6. 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
  7. 13 4月, 2015 1 次提交
  8. 04 3月, 2015 1 次提交
  9. 19 5月, 2014 1 次提交
  10. 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
  11. 17 9月, 2013 1 次提交
    • L
      virttest.env_process: Parallelize the image processing · 72a7d23a
      Lukáš Doktor 提交于
      Some cases create many disks, which takes a long time, where most
      time consumes the handling around cmd execution. This patch parallelize
      the image processing in case we deal with over 20 disks. It spawns
      $no_cpus * 2 threads (or less in case it would be inefficient).
      
      The performance improvement was significant (30=>12s on 4CPU system).
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      72a7d23a
  12. 10 9月, 2013 2 次提交
  13. 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
  14. 06 9月, 2013 1 次提交
  15. 02 9月, 2013 1 次提交
  16. 22 8月, 2013 1 次提交
    • X
      qemu.tests: fix some small bugs · 97239be7
      Xu Tian 提交于
      1). update pre_command: used scsi_debug parm to add_host instead write
      sys filesystem to avoid device create delay;
      
      2). fix passthrough scsi device cache to writethrough to avoid fail to
      open /dev/sg* when drive_cache=none; do this because /dev/sg* is
      emulated by scsI_debug module, backend of these device is memery, open
      with O_DRIECT is not supported;
      
      3). removed useless import module 'qemu_monitor'
      Signed-off-by: NXu Tian <xutian@redhat.com>
      97239be7
  17. 06 6月, 2013 2 次提交
  18. 15 5月, 2013 2 次提交
  19. 08 5月, 2013 1 次提交
  20. 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
  21. 02 2月, 2013 1 次提交
    • L
      multi_disk: Fix incorrect params · ba876db6
      Lukáš Doktor 提交于
      * max_disk must not have any usbs, otherwise there are not enough
        slots in PCI
      * default image_boot = yes which generates in multi_disk test
        multiple disks with index = 1 and test failure. By forcing default
        value stg_image_boot = 'no' we can keep the default value (and index
        of image1) and let the other disk to have their own indexes.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      ba876db6
  22. 25 12月, 2012 2 次提交
  23. 24 12月, 2012 2 次提交
  24. 27 11月, 2012 1 次提交
    • L
      kvm.multi_disk: Only preprocess required VM disks · 6272a312
      Lucas Meneghel Rodrigues 提交于
      This is a solution for issue #108, reported by Gerd.
      
      The test multi_disk was calling a full preprocess
      from the test scope, which is quite dangerous, as
      it messes with threads set by the virt tests infrastructure,
      making the test runner to hang.
      
      As the idea here is just to create the required disks
      before the vm starts, call preprocess_image for all
      the images in params.
      
      CC: Lukas Doktor <ldoktor@redhat.com>
      CC: Gerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      6272a312
  25. 07 9月, 2012 2 次提交