summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-05 01:23:41 +0100
committerGitHub <noreply@github.com>2022-01-05 01:23:41 +0100
commita893c8d8167eb6b2fe35bcbc3cd61c850456ef75 (patch)
tree190a2238d0182373c6c3e289729b17b24120f093 /smoketest
parent7eadd337bed031334629cfb29a6b5f69f88efe32 (diff)
parente536b6a037e66d884a161ae7ff6c836974f0071b (diff)
downloadvyos-1x-a893c8d8167eb6b2fe35bcbc3cd61c850456ef75.tar.gz
vyos-1x-a893c8d8167eb6b2fe35bcbc3cd61c850456ef75.zip
Merge pull request #1135 from sarthurdev/current
smoketest: shim: Optimise speed of `lsof` command
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/scripts/cli/base_vyostest_shim.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/base_vyostest_shim.py b/smoketest/scripts/cli/base_vyostest_shim.py
index 50f80e7d1..1652aa0d6 100644
--- a/smoketest/scripts/cli/base_vyostest_shim.py
+++ b/smoketest/scripts/cli/base_vyostest_shim.py
@@ -73,7 +73,7 @@ class VyOSUnitTestSHIM:
def cli_commit(self):
self._session.commit()
# during a commit there is a process opening commit_lock, and run() returns 0
- while run(f'sudo lsof | grep -q {commit_lock}') == 0:
+ while run(f'sudo lsof -nP {commit_lock}') == 0:
sleep(0.250)
def getFRRconfig(self, string, end='$', endsection='^!', daemon=''):