1. 08 Nov, 2018 1 commit
  2. 03 May, 2016 1 commit
  3. 17 Apr, 2016 1 commit
  4. 28 Mar, 2016 1 commit
    • Dylan Baker's avatar
      framework: fix unicode command line arguments with python 2.x · 6a9d0146
      Dylan Baker authored
      In python 3.x input is unicode by default, but in python 2.x everything
      is a byte string by default (which assumes ascii encoding), this
      includes input. Currently when running with python 3.x it's possible to
      use unicode for input, but python 2.x will choke when it tries to encode
      the bytes into unicode using the ascii codec.
      For example, this will work with python 3.x but no with python 2.x:
      (The character is yuki, Japanese for snow, if memory serves)
      ./piglit run quick 雪 -c
      This is actually pretty easy to fix, when running with python 2.x
      decode each input element into unicode using utf-8 as soon as the input
      is received. This fixes the above example to work.
      Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
      Tested-by: default avatarMarek Olšák <marek.olsak@amd.com>
  5. 20 Jun, 2014 1 commit
  6. 08 May, 2014 1 commit
  7. 07 May, 2014 1 commit
    • Dylan Baker's avatar
      framework: move executable functions to modules · 9b1e7da2
      Dylan Baker authored
      This moves piglit-run and piglit-resume main() functions to
      framework.programs.run as run() and resume() respectively, and moves
      piglit-summary-* to framework.programs.summary. It then creates
      compatibility wrappers as piglit-*.py for the functions.
      This is groundwork for a combined piglit interface. The original files
      could not be imported directly since they have dash (-) in their name,
      and python considers dash an illegal character for function, class, and
      modules names, and python would raise an ImportError when attempting to
      import one of them.
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Jordan Justen's avatarJordan Justen <jordan.l.justen@intel.com>
  8. 24 Apr, 2014 1 commit
    • Dylan Baker's avatar
      python: Add results_dir to TestProfile · 45de1cb3
      Dylan Baker authored
      This is needed specifically by XTS, but it might be useful for other
      external suites that want to move files out of their runtime directories
      into the saved directory. Specifically if those files are linked into
      the summary.
      v3: - Add the results_dir name definition to the constructor
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Eric Anholt <eric@anholt.net> (v2)
  9. 17 Apr, 2014 1 commit
  10. 02 Apr, 2014 1 commit
  11. 12 Mar, 2014 1 commit
    • Dylan Baker's avatar
      python: Convert from print statement to function · ebae9e61
      Dylan Baker authored
      One of the biggest changes between python2 and python3 is that print
      changed from a statement to a function. This change was backported to
      python2 in the __future__ module, and this patch makes that conversation
      to ease the transition from python2 to python3.
      v2: - Replace dict comprehension with dict(generator). This is for
            python 2.6 compatability
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
  12. 20 Feb, 2014 1 commit
  13. 06 Feb, 2014 1 commit
  14. 04 Feb, 2014 1 commit
    • Dylan Baker's avatar
      Use the new dmesg class · 90a25641
      Dylan Baker authored
      This actually makes use of the new dmesg class rather than the dmesg
      functions. It touches a lot of files, but almost all of these changes
      are code removal rather than code addition.
      v5: - Fix dmesg handling in resume
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> (v4)
  15. 12 Jan, 2014 1 commit
  16. 09 Jan, 2014 1 commit
  17. 30 Dec, 2013 1 commit
  18. 26 Dec, 2013 1 commit
  19. 19 Nov, 2013 1 commit
    • Dylan Baker's avatar
      Split resume functionality out of piglit-run.py · 9e6407e8
      Dylan Baker authored
      The resume functionality actually shares only a little boilerplate with
      the run functionality, and there is a lot of extra boilerplate that
      exists (or should exist) to make resumes work correctly with all of the
      command line options allowed by piglit-run. Therefore, it makes more
      sense to split it out into it's own file.
      Reviewed by: Kenney Phillis <Kkphillisjr@gmail.com>
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>