2025-04-20 20:00:23 Test-Runner-1 | =========================== Сессия тестирования запускается ================================================================================ Platform Linux-Python 3.9.22, Pytest-8.3.5, Pluggy-1.5.0
2025-04-20 20:00:23 Test-Runner-1 | rootdir: /app
2025-04-20 20:00:23 Test-Runner-1 | Собран 1 пункт
2025-04-20 20:00:23 Test-Runner-1 |
2025-04-20 20:00:25 Test-Runner-1 | Tests /test_docker_operations.py Local TDM существует: true
2025-04-20 20:00:25 Test-Runner-1 | Stdout:
2025-04-20 20:00:25 Test-Runner-1 |
2025-04-20 20:00:25 Test-Runner-1 | STDERR:
2025-04-20 20:00:25 Test-Runner-1 |
2025-04-20 20:00:25 Теста-управляющий-1 | F
2025-04-20 20:00:25 Test-Runner-1 |
2025-04-20 20:00:25 Test-Runner-1 | ===================================================================================================== _______________________ test_tdm_processing_with_command ___________________________
2025-04-20 20:00:25 Теста-вершина-1 |
2025-04-20 20:00:25 Теста-завод-1 | def test_tdm_processing_with_command ():
2025-04-20 20:00:25 Test-Runner-1 | # Определить пути
2025-04-20 20:00:25 Теста-управляющий-1 | input_file = "/app/tests/data/tha3.tdm"
2025-04-20 20:00:25 Test-Runner-1 | output_dir = "/app/tests/data/gid_362040"
2025-04-20 20:00:25 Test-Runner-1 |
2025-04-20 20:00:25 Test-Runner-1 | print ("Local TDM существует:", OS.Path.exists (f "{os.getCwd ()}/tests/data/tha3.tdm"))
2025-04-20 20:00:25 Test-Runner-1 | # Убедитесь, что вывод Dir существует
2025-04-20 20:00:25 Теста-управляющий-1 | OS.MAKEDIRS (output_dir, ESIGE_OK = TRUE)
2025-04-20 20:00:25 Test-Runner-1 |
2025-04-20 20:00:25 Test-Runner-1 | # Construct Docker Run Command
2025-04-20 20:00:25 Test-Runner-1 | Command = [
2025-04-20 20:00:25 Test-Runner-1 | "Docker", "Run",
2025-04-20 20:00:25 Теста-управляющий-1 | "-v", f "{os.getcwd ()}/tests/data:/input",
2025-04-20 20:00:25 Test-Runner-1 | "-v", f "{os.getCwd ()}/tests/data/gid_362040:/output",
2025-04-20 20:00:25 Теста-управляющий-1 | "artifactory.osep.stryker.com/dre-capps-docker-rel/strykercorp/dre/blueprint-studio/app/treatment-plan-Generator:1.0.2",
2025-04-20 20:00:25 Теста-версию-1 | "-Encryption-key", "alsfjlihih392374*(^$#",
2025-04-20 20:00:25 Test-Runner-1 | "-tdm-encryption-key", "titok",
2025-04-20 20:00:25 test-runner-1 | /> 2025-04-20 20:00:25 Test-Runner-1 | /> 2025-04-20 20:00:25 Test-Runner-1 | 20:00:25 20:00:25 Test-Runner-1 |
2025-04-20 20:00:25 Test-Runner-1 |
2025-04-20 20:00:25 Test-Runner-1 | > assert result.returncode == 0, f "Команда Docker не удастся с кодом return {result.returncode}: \ n {result.stderr}"
2025-04-20 20:00:25 Теста-управляющий-1 | E AssertionError: Команда Docker не удалась с кодом возврата 139:
2025-04-20 20:00:25 Теста-управляющий-1 | E
2025-04-20 20:00:25 Test-Runner-1 | E Assert 139 == 0
2025-04-20 20:00:25 Test-Runner-1 | E + где 139 = reflectProcess (args = ['docker', 'run', '-v', '/app/tests/data:/input', '-v', '/app/tests/data/gid_362040:/output', 'a ... ihih392374*(^$#', '--tdm-encryption-key '/input/tha3.tdm', '/output'], returncode = 139, stdout = '', stderr = ''). returncode
2025-04-20 20:00:25 Теста-управляющий-1 |
2025-04-20 20:00:25 Test-Runner-1 | /> 2025-04-20 20:00:25 Test-Runner-1 | =================================================== Tests /test_docker_operations.py :: test_tdm_processing_with_command-as ...
2025-04-20 20:00:25 Теста-завод-1 | =================================== ============================
Подробнее здесь: https://stackoverflow.com/questions/795 ... rform-2-op
Я хочу запустить использование официального изображения Python в моем Docker, который должен выполнить 2 операции, 1 -е ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение