1. 11 5月, 2018 1 次提交
  2. 08 5月, 2018 1 次提交
  3. 07 5月, 2018 5 次提交
  4. 04 5月, 2018 6 次提交
  5. 03 5月, 2018 3 次提交
  6. 02 5月, 2018 3 次提交
  7. 01 5月, 2018 1 次提交
  8. 30 4月, 2018 2 次提交
  9. 28 4月, 2018 2 次提交
  10. 26 4月, 2018 1 次提交
  11. 25 4月, 2018 5 次提交
  12. 24 4月, 2018 1 次提交
  13. 23 4月, 2018 6 次提交
  14. 21 4月, 2018 3 次提交
    • C
      FDDrainer: pass text to loggers · e1b21e2d
      Cleber Rosa 提交于
      The FDDrainer reads from process output and write to loggers.  The
      test log, which is intended for humans, can indeed try to treat it as
      text.  The stream logger, on the other hand, should deal with data as
      binary content *only*, but this will be handled on a future change.
      
      By having text content passed to the loggers, we avoid the occurrence
      of log lines that look like:
      
        [stdout] b'command output'
      
      Or output files (job-YYYY-MM-DDTHH.MM-id/tests/<test>/output) that
      may literally contain:
      
        b'command output'
      
      The encoding used is the one specified at the command execution.  With
      this fix, a number of tests on Python 3 can now run successfully.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e1b21e2d
    • C
      selftests/functional/test_basic.py: make echo output safe · 6a104b45
      Cleber Rosa 提交于
      In the module global scope, "man echo" is executed to attempt to
      determine if it's a GNU echo.  But, "man echo" in a locale such
      as UTF-8 produces funky copyright characters:
      
        $ LANG=en_US.UTF-8 man echo | chardetect -
        <stdin>: windows-1252 with confidence 0.73
      
      Which can not be decoded by the UTF-8 codec, producing
      UnicodeDecodeErrors.  Even if that wasn't the case, it's better to
      control the locale of command that can generate varied output, and
      that we depend on.
      
        $ LANG=C man echo | chardetect -
        <stdin>: ascii with confidence 1.0
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6a104b45
    • C
      avocado.utils.process: require commands to be given as unicode strings · 1401f3cf
      Cleber Rosa 提交于
      This change introduces the following requirement: the command to
      be run by the avocado.utils.process functions should be given as unicode.
      It brings a clearer interface, in which there's no need to deal with
      encodings internally.
      
      For simple test, it brings changes to respect the of passing unicode.
      And, it changes the presentation of simple tests with unicode names
      explicitly expreseed as such.
      
      The way to deal with the process data that may be generated on
      stdout/stderr is unchanged.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      1401f3cf