update defconfig test

Related: RHEL-39976
This commit is contained in:
Miroslav Lichvar 2024-06-05 15:02:44 +02:00
parent 0ea33e834d
commit d42124a3dc

View File

@ -12,12 +12,15 @@ eth=eth$i
tmpconf=$(mktemp)
sed "s/^\[ens.*\]/\[eth$i\]/" < /etc/synce4l.conf > "$tmpconf"
sed \
-e "s/^\[ens.*\]/\[eth$i\]/" \
-e "s|/run/synce4l_socket|/doesnotexist/synce4l_socket|" \
< /etc/synce4l.conf > "$tmpconf"
out=$(timeout -s 9 5 synce4l -m -q -l 7 -f "$tmpconf" 2>&1 || :)
echo "$out" | grep -q "config item synce1"
echo "$out" | grep -q "dpll mon for synce1 new state"
echo "$out" | grep -q "created num_devices:"
echo "$out" | grep -q "synce_manager_server_thread Bind failed"
echo "unknownoption 1" >> "$tmpconf"