1. 04 4月, 2018 1 次提交
  2. 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
  3. 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
  4. 05 11月, 2013 1 次提交
  5. 10 9月, 2013 1 次提交
  6. 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
  7. 06 6月, 2013 4 次提交
    • X
      qemu.tests.nfs_perf: add version info in result file · 87dd7823
      Xiaomei Gao 提交于
      impove the case in the scripts:
      - The result file is named by nfs-perf.RHS
      - Put the result into test.resultsdir
      - Collect version info in result
      - Format the result which can be used by regression.py
      
      Change from v1:
      - result file name is be set as a parameter
      - replace parameter ver_cmd by kvm_userspace_ver_cmd
      
      Change from v2:
      - get_path to get the file path
      - format the result which can be used by regression.py
      
      Change from v3:
      - modify speed result without unit
      Signed-off-by: NXiaomei Gao <xigao@redhat.com>
      Acked-by: NYiqiao Pu <ypu@redhat.com>
      87dd7823
    • Q
      qemu.tests.nfs_perf: Update the regex for dd output · cb699103
      Qingtang Zhou 提交于
      The original regex string for dd output goes wrong when
      the dd speed is slow:
      """
      2012-09-12 01:03:45: dd if=/dev/zero of=test_0zSfi bs=4k oflag=direct count=10000
      2012-09-12 01:05:09: 10000+0 records in
      2012-09-12 01:05:09: 10000+0 records out
      2012-09-12 01:05:09: 40960000 bytes (41 MB) copied, 84.0859 s, 487 kB/s
      """
      
      This patch update the regex string, making it can recognize more
      speed format.
      
      Changes from V3:
       * Fix incorrect placement of speed result convert line.
      Changes from V2:
       * Update this patch against latest nfs_perf test script.
       * Use new utils_misc.standard_value api to convert result data.
      Changelog from V1:
       * Convert all results in kB/s to MB/s.
      
      CC: Wenli Quan <wquan@redhat.com>
      CC: Xiaomei Gao <xigao@redhat.com>
      CC: Yiqiao Pu <ypu@redhat.com>
      Signed-off-by: NQingtang Zhou <qzhou@redhat.com>
      Acked-by: NWenli Quan <wquan@redhat.com>
      cb699103
    • Y
      qemu.tests.nfs_perf: Write test result to database · 8114ce8f
      Yiqiao Pu 提交于
      Save the write and read speed in database for nfs_perf.
      It will be like this in database:
        nfs--$blk_size--[write|read]: $speed
      Signed-off-by: NYiqiao Pu <ypu@redhat.com>
      8114ce8f
    • Q
      qemu.tests: Add a performance test of nfs with tcp protocol · ede1e4d7
      Qingtang Zhou 提交于
      Changes from v2:
       - Clean up temp files after testing.
      
      Changes from v1:
       - Update mount option.
       - Create a new file for each block size testing.
       - Drop caches before running each test.
       - Re-format test results file.
      Signed-off-by: NQingtang Zhou <qzhou@redhat.com>
      ede1e4d7