diff options
author | Gülşah Köse <gulsah.kose@collabora.com> | 2021-10-08 11:29:08 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-10-08 13:18:57 +0200 |
commit | 09ee4776096e3f86360664aa7bf2783f4c7ba3fb (patch) | |
tree | 5b5475f41c417c81173c462588d07f70a2b8969a /test-bugzilla-files | |
parent | fefe99d83597e44f994c95aeaa36609cbda79400 (diff) |
Control the saving previous state.
If SAVEPREVIOUSSTATE env is exist, tool will
save the previous state
Change-Id: If055e758d76798af50d94493e268deda7ca333cc
Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/123251
Tested-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'test-bugzilla-files')
-rw-r--r-- | test-bugzilla-files/new-control.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test-bugzilla-files/new-control.py b/test-bugzilla-files/new-control.py index ee8befe1..6635db6b 100644 --- a/test-bugzilla-files/new-control.py +++ b/test-bugzilla-files/new-control.py @@ -164,5 +164,7 @@ if __name__ == "__main__": exported_files = get_list_of_files("/srv/crashtestdata/current/srv/crashtestdata/files/") checkDiskSpace() - saveAsPreviousState(exported_files) - checkDiskSpace() + + if os.getenv('SAVEPREVIOUSSTATE'): + saveAsPreviousState(exported_files) + checkDiskSpace() |