diff options
author | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2022-11-15 10:20:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-11-15 20:48:56 +0100 |
commit | 3a2e47818088f661183d195131dac0bdbeebc49a (patch) | |
tree | ea122a431e4f1f859dbae2cb8418fe55120cad0c | |
parent | 09efa0825eb90233d35779807430a574afbb7587 (diff) |
Make number of files processed by a worker configurable
Many files on a worker may result in a few longer running
processes thus not utilizing the available parallelism.
This option may be most useful in smaller file sets in testing runs.
Change-Id: I48a18fd79195634320df8ff73985ba735f9c3ea9
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/142729
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | test-bugzilla-files/config | 1 | ||||
-rw-r--r-- | test-bugzilla-files/new-control.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test-bugzilla-files/config b/test-bugzilla-files/config index e52aecd1..5f81cee1 100644 --- a/test-bugzilla-files/config +++ b/test-bugzilla-files/config @@ -5,6 +5,7 @@ export INSTDIR=$BUILDDIR/instdir export USERDIR=/home/$USER/.config export WORKERS=72 export DTPATH=~/source/dev-tools/ +export FILESNR=100 # Warning limits export DISKSPACELIMIT=5 # Remaining disk space warning limit in GiB. diff --git a/test-bugzilla-files/new-control.py b/test-bugzilla-files/new-control.py index 60010ca0..2a95970a 100644 --- a/test-bugzilla-files/new-control.py +++ b/test-bugzilla-files/new-control.py @@ -150,7 +150,7 @@ if __name__ == "__main__": print("no valid directory") sys.exit(1) - task_size = 100 + task_size = int(os.environ["FILESNR"]) workers = int(os.environ["WORKERS"]) if asan == 1: workers = 64 |