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 2 commits
    • Dylan Baker's avatar
      piglit-run.py: Restrict dmesg to serial runs · f992b7fe
      Dylan Baker authored
      Dmesg reporting has always been inaccurate with concurrent runs, and the
      solution to concurrent runs would be to have each run take out a lock,
      removing the chance that another test generated an error in dmesg while
      it was running. But this effectively makes them a serial run, and at the
      cost of greater code complexity. With that in mind it makes more sense
      to just force --dmesg to imply -1.
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
    • 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. 28 Jan, 2014 1 commit
  16. 23 Jan, 2014 1 commit
  17. 12 Jan, 2014 1 commit
  18. 09 Jan, 2014 1 commit
  19. 19 Dec, 2013 1 commit
  20. 19 Nov, 2013 5 commits
  21. 23 Oct, 2013 1 commit
    • Dylan Baker's avatar
      Use simplejson if available · 4fefa4e0
      Dylan Baker authored
      simplejson is a native code version of the json module in python
      (the json module in core python implements the simplejson api), which
      means that simplejson can be used in place of the json module, but it
      performs much better. This patch attempts to load simplejson, and falls
      back to normal json if it fails.
      In the summary path on a single run of quick.tests, simplejson is about
      3-4 seconds faster than json, ~7 seconds vs ~11 seconds.
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
  22. 20 Oct, 2013 1 commit
  23. 11 Oct, 2013 1 commit
  24. 23 Sep, 2013 2 commits
  25. 17 Sep, 2013 1 commit
  26. 28 Aug, 2013 1 commit
  27. 29 Jul, 2013 1 commit
  28. 16 May, 2013 1 commit
  29. 13 May, 2013 1 commit
    • Dylan Baker's avatar
      python: Convert tabs to spaces · b9c4f967
      Dylan Baker authored
      PEP 8 specifies that all indents should be either 4 spaces or an
      equivalent tab indent, but without mixing tabs and spaces, with a
      preference for spaces over tabs because they are absolute. Tabs and
      spaces should not be mixed because they lead to expected indent level
      Currently piglit uses a mixture of spaces and tabs, this patch uses the
      python tools reindent.py to convert the tabs to spaces.
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      v2: Rebase against master, fix apparent unintentional unindentation of
          help text in piglit-summary.py (changes by anholt)
      Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
  30. 10 Mar, 2013 5 commits