diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-05 00:22:49 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-05 00:22:49 +0100 |
commit | e536b6a037e66d884a161ae7ff6c836974f0071b (patch) | |
tree | 4ada61648bb78bb734810641027169ccf4e77964 /smoketest/scripts/cli/base_vyostest_shim.py | |
parent | 993b87458456bc6fcbe5aa7fbc7c0c31580032ce (diff) | |
download | vyos-1x-e536b6a037e66d884a161ae7ff6c836974f0071b.tar.gz vyos-1x-e536b6a037e66d884a161ae7ff6c836974f0071b.zip |
smoketest: shim: Optimise speed of `lsof` command
Diffstat (limited to 'smoketest/scripts/cli/base_vyostest_shim.py')
-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=''): |