Skip to content

Commit 0749d67

Browse files
Boris Sukholitkoummakynes
authored andcommitted
selftests: nft_flowtable.sh: no need for ps -x option
Some ps commands (e.g. busybox derived) have no -x option. For the purposes of hash calculation of the list of processes this option is inessential. Signed-off-by: Boris Sukholitko <boris.sukholitko@broadcom.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 0a11073 commit 0749d67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/netfilter/nft_flowtable.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ ip -net $nsr1 addr add 10.0.1.1/24 dev veth0
489489
ip -net $nsr1 addr add dead:1::1/64 dev veth0
490490
ip -net $nsr1 link set up dev veth0
491491

492-
KEY_SHA="0x"$(ps -xaf | sha1sum | cut -d " " -f 1)
493-
KEY_AES="0x"$(ps -xaf | md5sum | cut -d " " -f 1)
492+
KEY_SHA="0x"$(ps -af | sha1sum | cut -d " " -f 1)
493+
KEY_AES="0x"$(ps -af | md5sum | cut -d " " -f 1)
494494
SPI1=$RANDOM
495495
SPI2=$RANDOM
496496

0 commit comments

Comments
 (0)