⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile--altlinux_10.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ''; \
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; \
chmod 600 ~/.ssh/authorized_keys; \
ls -la ~/.ssh/; \
TEST_FILTER=\"TestTestgresLocal or TestOsOpsLocal or local\" bash ./run_tests.sh;"
TEST_FILTER=\"\" bash ./run_tests.sh;"
5 changes: 4 additions & 1 deletion Dockerfile--altlinux_11.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN apt-get update
RUN apt-get install -y openssh-server openssh-clients
RUN apt-get install -y time

# pgrep (for testgres.os_ops)
RUN apt-get install -y procps

# RUN apt-get install -y mc

RUN apt-get install -y libsqlite3-devel
Expand Down Expand Up @@ -115,4 +118,4 @@ ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ''; \
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; \
chmod 600 ~/.ssh/authorized_keys; \
ls -la ~/.ssh/; \
TEST_FILTER=\"TestTestgresLocal or TestOsOpsLocal or local\" bash ./run_tests.sh;"
TEST_FILTER=\"\" bash ./run_tests.sh;"
12 changes: 10 additions & 2 deletions tests/test_os_ops_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,8 +876,16 @@ def test_get_tmpdir__compare_with_py_info(self, os_ops: OsOperations):
actual_dir = os_ops.get_tempdir()
assert actual_dir is not None
assert type(actual_dir) == str # noqa: E721
expected_dir = str(tempfile.tempdir)
assert actual_dir == expected_dir

# --------
cmd = [sys.executable, "-c", "import tempfile;print(tempfile.gettempdir());"]

expected_dir_b = os_ops.exec_command(cmd)
assert type(expected_dir_b) == bytes # noqa: E721
expected_dir = expected_dir_b.decode()
assert type(expected_dir) == str # noqa: E721
assert actual_dir + "\n" == expected_dir
return

class tagData_OS_OPS__NUMS:
os_ops_descr: OsOpsDescr
Expand Down