diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-05 01:23:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 01:23:41 +0100 |
commit | a893c8d8167eb6b2fe35bcbc3cd61c850456ef75 (patch) | |
tree | 190a2238d0182373c6c3e289729b17b24120f093 | |
parent | 7eadd337bed031334629cfb29a6b5f69f88efe32 (diff) | |
parent | e536b6a037e66d884a161ae7ff6c836974f0071b (diff) | |
download | vyos-1x-a893c8d8167eb6b2fe35bcbc3cd61c850456ef75.tar.gz vyos-1x-a893c8d8167eb6b2fe35bcbc3cd61c850456ef75.zip |
Merge pull request #1135 from sarthurdev/current
smoketest: shim: Optimise speed of `lsof` command
-rw-r--r-- | smoketest/scripts/cli/base_vyostest_shim.py | 2 |
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=''): |