1. 11 7月, 2017 1 次提交
    • E
      tests: Avoid non-portable 'echo -ARG' · b43671f8
      Eric Blake 提交于
      POSIX says that backslashes in the arguments to 'echo', as well as
      any use of 'echo -n' and 'echo -e', are non-portable; it recommends
      people should favor 'printf' instead.  This is definitely true where
      we do not control which shell is running (such as in makefile snippets
      or in documentation examples).  But even for scripts where we
      require bash (and therefore, where echo does what we want by default),
      it is still possible to use 'shopt -s xpg_echo' to change bash's
      behavior of echo.  And setting a good example never hurts when we are
      not sure if a snippet will be copied from a bash-only script to a
      general shell script (although I don't change the use of non-portable
      \e for ESC when we know the running shell is bash).
      
      Replace 'echo -n "..."' with 'printf %s "..."', and 'echo -e "..."'
      with 'printf %b "...\n"', with the optimization that the %s/%b
      argument can be omitted if the string being printed is a strict
      literal with no '%', '$', or '`' (we could technically also make
      this optimization when there are $ or `` substitutions but where
      we can prove their results will not be problematic, but proving
      that such substitutions are safe makes the patch less trivial
      compared to just being consistent).
      
      In the qemu-iotests check script, fix unusual shell quoting
      that would result in word-splitting if 'date' outputs a space.
      
      In test 051, take an opportunity to shorten the line.
      
      In test 068, get rid of a pointless second invocation of bash.
      
      CC: qemu-trivial@nongnu.org
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-id: 20170703180950.9895-1-eblake@redhat.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      b43671f8
  2. 12 2月, 2017 1 次提交
  3. 13 4月, 2016 1 次提交
  4. 05 9月, 2015 2 次提交
  5. 22 5月, 2015 1 次提交
    • F
      qemu-iotests: Make debugging python tests easier · aa4f592a
      Fam Zheng 提交于
      Adding "-d" option. The output goes to "tee" so it appears in your
      console. Also, raise the verbosity of unnitest runner.
      
      When testing a topic branch, it's possible that a bug introduced by a
      code change makes the python test case hang, with debug output, it is
      much easier to locate the problem.
      
      This can also be helpful if you want to watch the progress of a python
      test, it offers you a way to sense the speed of each test case method
      you're writing.
      
      Note: because there is no easy way to get *both* the verbose output and
      the output expected by ./check comparison, the case would always fail
      with an "output mismatch". The sole purpose of using this option is
      giving developers a quick way to debug when things go wrong.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      aa4f592a
  6. 13 1月, 2015 1 次提交
  7. 28 6月, 2014 3 次提交
  8. 15 5月, 2014 1 次提交
  9. 09 5月, 2014 1 次提交
  10. 04 12月, 2013 2 次提交
  11. 12 9月, 2013 1 次提交
  12. 06 9月, 2013 2 次提交
    • K
      qemu-iotests: Fixed test case 026 · 8f94b077
      Kevin Wolf 提交于
      The reference output for test case 026 hasn't been updated in a long
      time and it's one of the "known failing" cases. This patch updates the
      reference output so that unintentional changes can be reliably detected
      again.
      
      The problem with this test case is that it produces different output
      depending on whether -nocache is used or not. The solution of this patch
      is to actually have two different reference outputs. If nnn.out.nocache
      exists, it is used as the reference output for -nocache; otherwise,
      nnn.out stays valid for both cases.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      8f94b077
    • K
      qemu-iotests: Whitespace cleanup · 79e40ab1
      Kevin Wolf 提交于
      These scripts used to have a four characters indentation, with eight
      consecutive spaces converted into a tab. Convert everything into spaces.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      79e40ab1
  13. 29 5月, 2013 1 次提交
  14. 20 4月, 2012 1 次提交
  15. 29 2月, 2012 1 次提交
  16. 23 2月, 2012 2 次提交
  17. 22 2月, 2012 3 次提交