diff options
author | Vitalii Gridnev <gridnevvvit@gmail.com> | 2022-02-07 18:34:49 +0300 |
---|---|---|
committer | Vitalii Gridnev <gridnevvvit@gmail.com> | 2022-02-07 18:34:49 +0300 |
commit | 92e8a78ea09f0d02f76a645c3843a5a8a645e290 (patch) | |
tree | e2ef982933c7737b242103ecbe0c7137ed69995c | |
parent | 836f25f8b8fd1b3d80d84a6fe83ba91c58e77ace (diff) | |
download | ydb-92e8a78ea09f0d02f76a645c3843a5a8a645e290.tar.gz |
fix YDB_PDISK_SIZE env variable
ref:23e4c7471a33b3e4eb450f7f8a2d6e4b02b31bdf
-rw-r--r-- | ydb/tests/library/harness/kikimr_config.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ydb/tests/library/harness/kikimr_config.py b/ydb/tests/library/harness/kikimr_config.py index abe38cccc7..57c282b9f4 100644 --- a/ydb/tests/library/harness/kikimr_config.py +++ b/ydb/tests/library/harness/kikimr_config.py @@ -19,7 +19,11 @@ import yaml from library.python import resource -PDISK_SIZE = os.getenv("YDB_PDISK_SIZE", 64 * 1024 * 1024 * 1024) +PDISK_SIZE_STR = os.getenv("YDB_PDISK_SIZE", str(64 * 1024 * 1024 * 1024)) +if PDISK_SIZE_STR.endswith("GB"): + PDISK_SIZE = int(PDISK_SIZE_STR[:-2]) * 1024 * 1024 * 1024 +else: + PDISK_SIZE = int(PDISK_SIZE_STR) def get_fqdn(): |