Comment 0 for bug 2037873

Revision history for this message
nikhil kshirsagar (nkshirsagar) wrote :

[IMPACT]

Fix an autopkgtest typo in the autopkgtests, in simple.sh,

# test using mask
test_mask () {
 <snip>
        # only tests first interface
        ip_addr=$(ip route show default | awk '/default/ {print $3}')
        if [ "$(grep -rI $ip_addr /tmp/sosreport_test/*)" ]; then
            add_failure "IP address not obfuscated in all places"
            echo "$(grep -rI $ip_addr /tmp/sosreport/_test/*)" <======= the "/" should be removed
        fi
        update_failures
    fi
    update_summary "$cmd"
}

[TEST PLAN]

Manually create a sos with an unobfuscated IP address matching output of

ip_addr=$(ip route show default | awk '/default/ {print $3}')

Check if its printed properly when the simple.sh reports the test failure due to the sosreport containing this ip address.

[WHERE PROBLEMS COULD OCCUR]
This is a very trivial typo correction and I cannot anticipate any problems due to this change.