]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests/powerpc: Skip earlier in alignment_handler test
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jul 2018 12:08:41 +0000 (22:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Aug 2018 14:32:28 +0000 (00:32 +1000)
commitedba42cd14dbb0cc8b48cf786b006ac5da4cd9a7
treecca80de4556a5cae0cfd1cee24e1a0afab770272
parent78ee9946371f5848ddfc88ab1a43867df8f17d83
selftests/powerpc: Skip earlier in alignment_handler test

Currently the alignment_handler test prints "Can't open /dev/fb0"
about 80 times per run, which is a little annoying.

Refactor it to check earlier if it can open /dev/fb0 and skip if not,
this results in each test printing something like:

  test: test_alignment_handler_vsx_206
  tags: git_version:v4.18-rc3-134-gfb21a48904aa
  [SKIP] Test skipped on line 291
  skip: test_alignment_handler_vsx_206

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
tools/testing/selftests/powerpc/alignment/alignment_handler.c