aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/ytest.py
diff options
context:
space:
mode:
authorsvidyuk <svidyuk@yandex-team.com>2023-09-23 01:02:01 +0300
committersvidyuk <svidyuk@yandex-team.com>2023-09-23 01:25:37 +0300
commit97735004c33ecf5c10738796013df9461952fdd1 (patch)
treee43129411ce524db674b5593378debfc88a62477 /build/plugins/ytest.py
parentb8b31d1d500378c44c7e2d817c2b1b4f86524320 (diff)
downloadydb-97735004c33ecf5c10738796013df9461952fdd1.tar.gz
build whole ymake dir with py3 flawored ymake
Diffstat (limited to 'build/plugins/ytest.py')
-rw-r--r--build/plugins/ytest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py
index fc28c2dc0c..afbafd7f09 100644
--- a/build/plugins/ytest.py
+++ b/build/plugins/ytest.py
@@ -48,7 +48,7 @@ def ontest_data(unit, *args):
def prepare_recipes(data):
data = data.replace('"USE_RECIPE_DELIM"', "\n")
data = data.replace("$TEST_RECIPES_VALUE", "")
- return base64.b64encode(data or "")
+ return base64.b64encode(six.ensure_binary(data or ""))
def prepare_env(data):
@@ -342,7 +342,7 @@ def dump_test(unit, kw):
return None
string_handler = StringIO()
for k, v in six.iteritems(valid_kw):
- print(k + ': ' + v, file=string_handler)
+ print(k + ': ' + six.ensure_str(v), file=string_handler)
print(BLOCK_SEPARATOR, file=string_handler)
data = string_handler.getvalue()
string_handler.close()
@@ -350,7 +350,7 @@ def dump_test(unit, kw):
def serialize_list(lst):
- lst = filter(None, lst)
+ lst = list(filter(None, lst))
return '\"' + ';'.join(lst) + '\"' if lst else ''
@@ -840,7 +840,7 @@ def add_test_to_dart(unit, test_type, binary_path=None, runner_bin=None):
if unit.get('ADD_SRCDIR_TO_TEST_DATA') == "yes":
unit.ondata_files(_common.get_norm_unit_path(unit))
custom_deps = get_values_list(unit, 'TEST_DEPENDS_VALUE')
- timeout = filter(None, [unit.get(["TEST_TIMEOUT"])])
+ timeout = list(filter(None, [unit.get(["TEST_TIMEOUT"])]))
if timeout:
timeout = timeout[0]
else:
@@ -1162,7 +1162,7 @@ def onsetup_exectest(unit, *args):
command = command.replace("$EXECTEST_COMMAND_VALUE", "")
if "PYTHON_BIN" in command:
unit.ondepends('contrib/tools/python')
- unit.set(["TEST_BLOB_DATA", base64.b64encode(command)])
+ unit.set(["TEST_BLOB_DATA", base64.b64encode(six.ensure_binary(command))])
add_test_to_dart(unit, "exectest", binary_path=os.path.join(unit.path(), unit.filename()).replace(".pkg", ""))