1. 31 10月, 2018 4 次提交
  2. 11 6月, 2018 2 次提交
  3. 09 6月, 2018 1 次提交
  4. 30 5月, 2018 6 次提交
  5. 23 5月, 2018 2 次提交
  6. 10 4月, 2018 3 次提交
  7. 19 3月, 2018 1 次提交
  8. 14 3月, 2018 3 次提交
  9. 10 2月, 2018 1 次提交
  10. 26 1月, 2018 1 次提交
  11. 19 12月, 2017 1 次提交
  12. 12 10月, 2017 2 次提交
  13. 06 9月, 2017 1 次提交
  14. 05 9月, 2017 1 次提交
    • S
      iotests.py: add FilePath context manager · f4844ac0
      Stefan Hajnoczi 提交于
      The scratch/ (TEST_DIR) directory is not automatically cleaned up after
      test execution.  It is the responsibility of tests to remove any files
      they create.
      
      A nice way of doing this is to declare files at the beginning of the
      test and automatically remove them with a context manager:
      
        with iotests.FilePath('test.img') as img_path:
            qemu_img(...)
            qemu_io(...)
        # img_path is guaranteed to be deleted here
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 20170824072202.26818-3-stefanha@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      f4844ac0
  15. 23 8月, 2017 1 次提交
  16. 24 7月, 2017 1 次提交
    • K
      qemu-iotests: Avoid unnecessary sleeps · 2c93c5cb
      Kevin Wolf 提交于
      Test cases 030, 041 and 055 used to sleep for a second after calling
      block-job-pause to make sure that the block job had time to actually
      get into paused state. We can instead poll its status and use that one
      second only as a timeout.
      
      The tests also slept a second for checking that the block jobs don't
      make progress while being paused. Half a second is more than enough for
      this.
      
      These changes reduce the total time for the three tests by 25 seconds on
      my laptop (from 155 seconds to 130).
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      2c93c5cb
  17. 07 4月, 2017 1 次提交
  18. 31 10月, 2016 1 次提交
  19. 28 10月, 2016 3 次提交
  20. 23 9月, 2016 1 次提交
  21. 06 9月, 2016 2 次提交
  22. 27 7月, 2016 1 次提交
    • D
      iotest: fix python based IO tests · 4c44b4a4
      Daniel P. Berrange 提交于
      The previous commit refactoring iotests.py:
      
        commit 66613974
        Author: Daniel P. Berrange <berrange@redhat.com>
        Date:   Wed Jul 20 14:23:10 2016 +0100
      
          scripts: refactor the VM class in iotests for reuse
      
      was not properly tested and included a number of broken
      bits.
      
       - The 'event_match' method was not moved into qemu.py
       - The 'self._args' list parameter in QEMUMachine needs
         to be copied otherwise modifications will affect the
         global 'qemu_opts' variable in iotests.py
       - The QEMUQtestMachine class methods had inverted
         parameter order for the super() calls
       - The QEMUQtestMachine class forgot to add
         '-machine accel=qtest'
       - The QEMUQtestMachine class constructor needs to set
         a default 'name' value before using it as it may
         be None
       - The QEMUQtestMachine class constructor needs to use
         named parameters when calling the super constructor
         as it is leaving out some positional parameters.
       - The 'qemu_prog' variable should be a string not a
         list in iotests.py
       - The VM classs constructor needs to use named
         parameters when calling the super constructor
         as it is leaving out some positional parameters.
       - The path to the socket-scm-helper needs to be
         passed into the QEMUMachine class
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 1469549767-27249-1-git-send-email-berrange@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      4c44b4a4