From: Yu Watanabe Date: Mon, 24 Oct 2022 17:58:39 +0000 (+0900) Subject: test: rewrite tests for renaming network interface X-Git-Tag: v252~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9918dfb98b6445bfeca6cfdc636c566797e8cc6b;p=thirdparty%2Fsystemd.git test: rewrite tests for renaming network interface - use `udevadm wait` instead of `udevadm info --wait-initialized`, - use `timeout` command instead of the fixed time sleep, - add basic tests for #25106, - add brief comment about #25115. --- diff --git a/test/units/testsuite-17.02.sh b/test/units/testsuite-17.02.sh index 797676fc142..7abbce77476 100755 --- a/test/units/testsuite-17.02.sh +++ b/test/units/testsuite-17.02.sh @@ -1,59 +1,105 @@ #!/usr/bin/env bash # SPDX-License-Identifier: LGPL-2.1-or-later -set -ex + +# disable shellcheck warning about '"aaa"' type quotation +# shellcheck disable=SC2016 + +set -eux set -o pipefail +# shellcheck source=test/units/assert.sh +. "$(dirname "$0")"/assert.sh + mkdir -p /run/udev/rules.d/ +# test for ID_RENAMING= udev property and device unit state + cat >/run/udev/rules.d/50-testsuite.rules </run/udev/rules.d/50-testsuite.rules <