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.
[IMPACT]
Fix an autopkgtest typo in the autopkgtests, in simple.sh,
# test using mask
ip_addr= $(ip route show default | awk '/default/ {print $3}') test/*) " ]; then
add_ failure "IP address not obfuscated in all places" _test/* )" <======= the "/" should be removed
update_ failures
test_mask () {
<snip>
# only tests first interface
if [ "$(grep -rI $ip_addr /tmp/sosreport_
echo "$(grep -rI $ip_addr /tmp/sosreport/
fi
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.