Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prog: recognize ENOTSUPP in testRun() #653

Merged
merged 1 commit into from May 4, 2022

Commits on May 4, 2022

  1. prog: recognize ENOTSUPP in testRun()

    Not all program types support PROG_TEST_RUN on all kernel versions.
    Previously, when testing a program type that didn't have a test runner
    implemented, the following error would be returned:
    
      Error when running: can't test program: can't run test: errno 524
    
    Since this isn't overly descriptive, make it clear to the caller that
    the kernel supports test runs, just not for the particular program type.
    
    Also fixes haveProgTestRun on kernels between 4.12 (where PROG_TEST_RUN
    was introduced) and 4.16 (where sk_filter test runner was added).
    
    Signed-off-by: Timo Beckers <timo@isovalent.com>
    ti-mo committed May 4, 2022
    Copy the full SHA
    0a7276f View commit details
    Browse the repository at this point in the history