mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-24 15:47:18 -04:00
Make "autosign" system test work with BusyBox awk
The BusyBox version of awk treats some variables which other awk implementations consider to be decimal values as octal values. This intermittently breaks key event interval calculations in the "autosign" system test, trigger false positives for it. Prevent the problem from happening by stripping leading zeros from the affected awk variables.
This commit is contained in:
parent
3384455659
commit
ad008f7dbf
1 changed files with 1 additions and 1 deletions
|
|
@ -1168,7 +1168,7 @@ status=`expr $status + $ret`
|
|||
# event scheduled is within 10 seconds of expected interval.
|
||||
check_interval () {
|
||||
awk '/next key event/ {print $2 ":" $9}' $1/named.run |
|
||||
sed 's/\.//g' |
|
||||
sed -e 's/\.//g' -e 's/:0\{1,4\}/:/g' |
|
||||
awk -F: '
|
||||
{
|
||||
x = ($6+ $5*60000 + $4*3600000) - ($3+ $2*60000 + $1*3600000);
|
||||
|
|
|
|||
Loading…
Reference in a new issue