Skip to content

Commit

Permalink
fix(test): remove check on dhclient support for --timeout
Browse files Browse the repository at this point in the history
The network-legacy dracut module already ignores the DHCP timeout option when
it's not supported by dhclient. Other network modules don't use dhclient for
DHCP.
  • Loading branch information
bengal authored and aafeijoo-suse committed Feb 7, 2023
1 parent d3993c7 commit da95948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions test/TEST-20-NFS/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ client_test() {
# shellcheck disable=SC2034
declare -i disk_index=0
qemu_add_drive_args disk_index disk_args "$TESTDIR"/marker.img marker

if dhclient --help 2>&1 | grep -q -F -- '--timeout' 2> /dev/null; then
cmdline="$cmdline rd.net.timeout.dhcp=3"
fi
cmdline="$cmdline rd.net.timeout.dhcp=3"

"$testdir"/run-qemu \
"${disk_args[@]}" \
Expand Down
5 changes: 1 addition & 4 deletions test/TEST-50-MULTINIC/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ client_test() {
# shellcheck disable=SC2034
declare -i disk_index=0
qemu_add_drive_args disk_index disk_args "$TESTDIR"/marker.img marker

if dhclient --help 2>&1 | grep -q -F -- '--timeout' 2> /dev/null; then
cmdline="$cmdline rd.net.timeout.dhcp=3"
fi
cmdline="$cmdline rd.net.timeout.dhcp=3"

# Invoke KVM and/or QEMU to actually create the target filesystem.
"$testdir"/run-qemu \
Expand Down

0 comments on commit da95948

Please sign in to comment.