1. 12 Dec, 2022 1 commit
  2. 31 Oct, 2022 2 commits
    • Daniel Latypov's avatar
      kunit: tool: print summary of failed tests if a few failed out of a lot · f19dd011
      Daniel Latypov authored
      E.g. all the hw_breakpoint tests are failing right now.
      So if I run `kunit.py run --altests --arch=x86_64`, then I see
      > Testing complete. Ran 408 tests: passed: 392, failed: 9, skipped: 7
      
      Seeing which 9 tests failed out of the hundreds is annoying.
      If my terminal doesn't have scrollback support, I have to resort to
      looking at `.kunit/test.log` for the `not ok` lines.
      
      Teach kunit.py to print a summarized list of failures if the # of tests
      reachs an arbitrary threshold (>=100 tests).
      
      To try and keep the output from being too long/noisy, this new logic
      a) just reports "parent_test failed" if every child test failed
      b) won't print anything if there are >10 failures (also arbitrary).
      
      With this patch, we get an extra line of output showing:
      > Testing complete. Ran 408 tests: passed: 392, failed: 9, skipped: 7
      > Failures: hw_breakpoint
      
      This also works with parameterized tests, e.g. if I add a fake failure
      > Failures: kcsan.test_atomic_builtins_missing_barrier.threads=6
      
      Note: we didn't have enough tests for this to be a problem before.
      But with commit 980ac3ad ("kunit: tool: rename all_test_uml.config,
      use it for --alltests"), --alltests works and thus running >100 tests
      will probably become more common.
      Signed-off-by: default avatarDaniel Latypov <dlatypov@google.com>
      Reviewed-by: default avatarDavid Gow <davidgow@google.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      f19dd011
    • Daniel Latypov's avatar
      kunit: tool: make unit test not print parsed testdata to stdout · 3ffdcf7e
      Daniel Latypov authored
      Currently, if you run
      $ ./tools/testing/kunit/kunit_tool_test.py
      you'll see a lot of output from the parser as we feed it testdata.
      
      This makes the output hard to read and fairly confusing, esp. since our
      testdata includes example failures, which get printed out in red.
      
      Silence that output so real failures are easier to see.
      Signed-off-by: default avatarDaniel Latypov <dlatypov@google.com>
      Reviewed-by: default avatarDavid Gow <davidgow@google.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      3ffdcf7e
  3. 27 Oct, 2022 6 commits
  4. 23 Oct, 2022 9 commits
  5. 22 Oct, 2022 21 commits
  6. 21 Oct, 2022 1 commit
    • Linus Torvalds's avatar
      Merge tag '6.1-rc1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · bd8e9634
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
      
       - memory leak fixes
      
       - fixes for directory leases, including an important one which fixes a
         problem noticed by git functional tests
      
       - fixes relating to missing free_xid calls (helpful for
         tracing/debugging of entry/exit into cifs.ko)
      
       - a multichannel fix
      
       - a small cleanup fix (use of list_move instead of list_del/list_add)
      
      * tag '6.1-rc1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: update internal module number
        cifs: fix memory leaks in session setup
        cifs: drop the lease for cached directories on rmdir or rename
        smb3: interface count displayed incorrectly
        cifs: Fix memory leak when build ntlmssp negotiate blob failed
        cifs: set rc to -ENOENT if we can not get a dentry for the cached dir
        cifs: use LIST_HEAD() and list_move() to simplify code
        cifs: Fix xid leak in cifs_get_file_info_unix()
        cifs: Fix xid leak in cifs_ses_add_channel()
        cifs: Fix xid leak in cifs_flock()
        cifs: Fix xid leak in cifs_copy_file_range()
        cifs: Fix xid leak in cifs_create()
      bd8e9634