diff options
author | Dmitry Kopylov <kopylovd@gmail.com> | 2022-02-10 16:48:18 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:18 +0300 |
commit | b2f5101486cc0de2e979c8ba9ada2109785bf5fd (patch) | |
tree | affe28b840816b505db0467f2285b01c89c04247 /build/plugins/_test_const.py | |
parent | e9b28b5aad71453a4637b70dde02e801e4147a2a (diff) | |
download | ydb-b2f5101486cc0de2e979c8ba9ada2109785bf5fd.tar.gz |
Restoring authorship annotation for Dmitry Kopylov <kopylovd@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'build/plugins/_test_const.py')
-rw-r--r-- | build/plugins/_test_const.py | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/build/plugins/_test_const.py b/build/plugins/_test_const.py index 0d03cc3d179..af591ccc081 100644 --- a/build/plugins/_test_const.py +++ b/build/plugins/_test_const.py @@ -1,7 +1,7 @@ # coding: utf-8 import re import sys - + RESTART_TEST_INDICATOR = '##restart-test##' INFRASTRUCTURE_ERROR_INDICATOR = '##infrastructure-error##' @@ -120,16 +120,16 @@ class TestRequirementsConstants(Enum): class TestSize(Enum): - Small = 'small' - Medium = 'medium' - Large = 'large' - + Small = 'small' + Medium = 'medium' + Large = 'large' + DefaultTimeouts = { - Small: 60, - Medium: 600, - Large: 3600, - } - + Small: 60, + Medium: 600, + Large: 3600, + } + DefaultPriorities = { Small: -1, Medium: -2, @@ -178,22 +178,22 @@ class TestSize(Enum): }, } - @classmethod - def sizes(cls): + @classmethod + def sizes(cls): return cls.DefaultTimeouts.keys() - - @classmethod - def get_default_timeout(cls, size): + + @classmethod + def get_default_timeout(cls, size): if size in cls.DefaultTimeouts: return cls.DefaultTimeouts[size] - raise Exception("Unknown test size '{}'".format(size)) - + raise Exception("Unknown test size '{}'".format(size)) + @classmethod def get_default_priorities(cls, size): if size in cls.DefaultPriorities: return cls.DefaultPriorities[size] raise Exception("Unknown test size '{}'".format(size)) - + @classmethod def get_default_requirements(cls, size): if size in cls.DefaultRequirements: @@ -208,25 +208,25 @@ class TestSize(Enum): class TestRunExitCode(Enum): - Skipped = 2 + Skipped = 2 Failed = 3 - TimeOut = 10 + TimeOut = 10 InfrastructureError = 12 - - + + class YaTestTags(Enum): - Manual = "ya:manual" - Notags = "ya:notags" - Norestart = "ya:norestart" - Dirty = "ya:dirty" - Noretries = "ya:noretries" - Fat = "ya:fat" - RunWithAsserts = "ya:relwithdebinfo" - Privileged = "ya:privileged" + Manual = "ya:manual" + Notags = "ya:notags" + Norestart = "ya:norestart" + Dirty = "ya:dirty" + Noretries = "ya:noretries" + Fat = "ya:fat" + RunWithAsserts = "ya:relwithdebinfo" + Privileged = "ya:privileged" ExoticPlatform = "ya:exotic_platform" NotAutocheck = "ya:not_autocheck" - - + + class Status(object): GOOD, XFAIL, FAIL, XPASS, MISSING, CRASHED, TIMEOUT = range(1, 8) SKIPPED = -100 |