diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-06-10 12:32:42 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-06-15 09:38:10 +0200 |
commit | 2320ac3349789551e9c7500dba03e04b9ac02f41 (patch) | |
tree | 693d5ed12c2eb19061e1fc6e871199012a2d8db0 /test/lib | |
parent | 6703da44c16b9bdfc4d959db270961d8ab826570 (diff) | |
download | passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.gz passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.bz2 passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.lz passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.xz passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.zst passt-2320ac3349789551e9c7500dba03e04b9ac02f41.zip |
Don't abbreviate ip(8) arguments in examples and tests
ip(8)'s ability to take abbreviated arguments (e.g. "li sh" instead of
"link show") is very handy when using it interactively, but it doesn't make
for very readable scripts and examples when shown that way.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib')
-rwxr-xr-x | test/lib/setup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/setup b/test/lib/setup index 6139e8f..ffc4171 100755 --- a/test/lib/setup +++ b/test/lib/setup @@ -141,7 +141,7 @@ setup_passt_in_ns() { pane_status GUEST pane_status NS - pane_run NS "ip -j li sh | jq -rM '.[] | select(.link_type == \"ether\").ifname'" + pane_run NS "ip -j link show | jq -rM '.[] | select(.link_type == \"ether\").ifname'" pane_wait NS __ifname="$(pane_parse NS)" pane_run NS "/sbin/udhcpc -i ${__ifname}" @@ -228,7 +228,7 @@ setup_two_guests() { pane_run GUEST_1 "nsenter -t ${__ns1_pid} -U -n --preserve-credentials" pane_run GUEST_2 "nsenter -t ${__ns2_pid} -U -n --preserve-credentials" - pane_run PASST_1 "ip -j li sh | jq -rM '.[] | select(.link_type == \"ether\").ifname'" + pane_run PASST_1 "ip -j link show | jq -rM '.[] | select(.link_type == \"ether\").ifname'" pane_wait PASST_1 __ifname="$(pane_parse PASST_1)" |