diff options
| author | Ondřej Surý <ondrej@sury.org> | 2021-02-07 12:52:35 +0100 | 
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2021-07-03 17:02:37 +0200 | 
| commit | 33ce95cad08d40aca84e254a26547aac5054e232 (patch) | |
| tree | 7e0d08acf6cebee61dece0ace4071b7b01461a7c /debian/tests | |
| parent | 223766ead45908e3950b1a7cc85ea2acae7054a0 (diff) | |
debian: Make the autopkgtest more resilient (Closes: #980111)
The Debian autopkgtest would fail with new PAM introduced in Debian bullseye.
Add a little loop to wait a little longer for the changes to propagate.
Signed-off-by: Ondřej Surý <ondrej@sury.org>
Diffstat (limited to 'debian/tests')
| -rwxr-xr-x | debian/tests/py-frr-reload | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/tests/py-frr-reload b/debian/tests/py-frr-reload index e2c97e8744..6dfef33f08 100755 --- a/debian/tests/py-frr-reload +++ b/debian/tests/py-frr-reload @@ -22,7 +22,15 @@ sed -e '/^ip route 198.51.100.0\/28 127.0.0.1/ c ip route 198.51.100.64/28 127.0  service frr reload -vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.64/28 127.0.0.1' +# wait for the new config to load +for __t in $(seq 1 10); do +	if vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.64/28 127.0.0.1'; then +		break +	fi +	sleep "$__t" +done + +# fail if the old config is still loaded  if vtysh -c 'show running-config' | grep -q 'ip route 198.51.100.0/28 127.0.0.1'; then  	exit 1  fi  | 
