Skip to content
Snippets Groups Projects
  1. Feb 10, 2025
  2. Mar 31, 2022
  3. Jan 22, 2021
  4. Mar 23, 2020
  5. Feb 21, 2020
    • Petri Latvala's avatar
      runner/resultgen: Provide output when test output is completely empty · 42b901b4
      Petri Latvala authored
      
      If a machine is hard-hanging or otherwise rebooted at the correct
      time, intermediary output files get created but nothing ever gets
      written to them. That yields results that are completely empty and
      hard to categorize or even sometimes detect automatically. Handle this
      corner case explicitly with a custom text explaining what might have
      happened to prod result analysis towards fixing the real issue instead
      of wondering if test result processing is faulty.
      
      The race for getting empty files is easier to hit than it seems. The
      files get created by the runner before calling exec(), and there's
      plenty of time to hit a really hard crash.
      
      Signed-off-by: default avatarPetri Latvala <petri.latvala@intel.com>
      Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
      Reviewed-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      42b901b4
  6. Jan 15, 2020
    • Petri Latvala's avatar
      runner/json_tests: Test handling of unprintable output from tests · b4a46970
      Petri Latvala authored
      
      A simple test output with numbers from 1 to 255, both in plain text
      form and as a single byte with that particular value.
      
      Note that the json spec doesn't require \u-encoding for characters
      other than '"', '\' and the range U+0000 to U+001F, the raw
      non-\u-encoded UTF-8 in the reference.json file for bytes 128 and up
      is what libjson-c outputs for those codepoints and is valid.
      
      The validity of the json file can be verified with iconv, i.e.
      
       $ iconv -f UTF-8 reference.json -o /dev/null && echo it is utf-8
      
      v2: Rebase over dynamic subtest tests, trivial
      
      Signed-off-by: default avatarPetri Latvala <petri.latvala@intel.com>
      Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
      Reviewed-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      b4a46970
  7. Jan 03, 2020
  8. Nov 15, 2019
  9. Oct 21, 2019
  10. Apr 01, 2019
  11. Dec 20, 2018
  12. Dec 12, 2018
  13. Nov 15, 2018
    • Petri Latvala's avatar
      runner: Implement --abort-on-monitored-error · 111593c4
      Petri Latvala authored
      
      Deviating a bit from the piglit command line flag, igt_runner takes an
      optional comma-separated list as an argument to
      --abort-on-monitored-error for the list of conditions to abort
      on. Without a list all possible conditions will be checked.
      
      Two conditions implemented:
       - "taint" checks the kernel taint level for TAINT_PAGE, TAINT_DIE and
       TAINT_OOPS
       - "lockdep" checks the kernel lockdep status
      
      Checking is done after every test binary execution, and if an abort
      condition is met, the reason is printed to stderr (unless log level is
      quiet) and the runner doesn't execute any further tests. Aborting
      between subtests (when running in --multiple-mode) is not done.
      
      v2:
       - Remember to fclose
       - Taints are unsigned long (Chris)
       - Use getline instead of fgets (Chris)
      v3:
       - Fix brainfart with lockdep
      v4:
       - Rebase
       - Refactor the abort condition checking to pass down strings
       - Present the abort result in results.json as a pseudo test result
       - Unit tests for the pseudo result
      v5:
       - Refactors (Chris)
       - Don't claim lockdep was triggered if debug_locks is not on
         anymore. Just say it's not active.
       - Dump lockdep_stats when aborting due to lockdep (Chris)
       - Use igt@runner@aborted instead for the pseudo result (Martin)
      v6:
       - If aborting after a test, generate results.json. Like was already
         done for aborting at startup.
       - Print the test that would be executed next as well when aborting,
         as requested by Tomi.
      v7:
       - Remove the resolved TODO item from commit message
      
      Signed-off-by: default avatarPetri Latvala <petri.latvala@intel.com>
      Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
      Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
      Cc: Martin Peres <martin.peres@linux.intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      111593c4
  14. Nov 06, 2018
Loading