• D
    selftests: Add debugging options to pmtu.sh · 56490b62
    David Ahern 提交于
    pmtu.sh script runs a number of tests and dumps a summary of pass/fail.
    If a test fails, it is near impossible to debug why. For example:
    
        TEST: ipv6: PMTU exceptions                       [FAIL]
    
    There are a lot of commands run behind the scenes for this test. Which
    one is failing?
    
    Add a VERBOSE option to show commands that are run and any output from
    those commands. Add a PAUSE_ON_FAIL option to halt the script if a test
    fails allowing users to poke around with the setup in the failed state.
    
    In the process, rename tracing to TRACING and move declaration to top
    with the new variables.
    Signed-off-by: NDavid Ahern <dsahern@gmail.com>
    Reviewed-by: NStefano Brivio <sbrivio@redhat.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    56490b62
pmtu.sh 34.3 KB