atex 2.0.dev1__tar.gz → 2.0.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {atex-2.0.dev1 → atex-2.0.dev3}/.github/workflows/pages.yaml +3 -3
- {atex-2.0.dev1 → atex-2.0.dev3}/.github/workflows/self-tests.yaml +8 -8
- {atex-2.0.dev1 → atex-2.0.dev3}/.github/workflows/style.yaml +6 -6
- {atex-2.0.dev1 → atex-2.0.dev3}/PKG-INFO +1 -1
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/reportportal/README.md +18 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/shvirt/common.py +1 -1
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/virt/install.py +0 -1
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/ssh/ssh.py +9 -2
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/beakerlib/beakerlib.py +4 -2
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/testcontrol.py +4 -1
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/adhoc/mixins.py +12 -8
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/shvirt/shvirt.py +17 -8
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/testingfarm/api.py +17 -8
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/README.md +1 -4
- atex-2.0.dev3/atex/util/__init__.py +11 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/null_logger.py +0 -3
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/subprocess.py +5 -1
- {atex-2.0.dev1 → atex-2.0.dev3}/pyproject.toml +1 -1
- atex-2.0.dev1/atex/util/__init__.py +0 -43
- {atex-2.0.dev1 → atex-2.0.dev3}/.claude/CLAUDE.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/.editorconfig +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/.github/pull_request_template.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/.github/scripts/pdoc/patch_pdoc.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/.github/scripts/pdoc/post_process_repo.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/.github/scripts/pdoc/prepare_templates.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/.gitignore +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/AGENTS.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/API_RULES.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/COPYING.txt +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/DEVEL.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/jsonl/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/jsonl/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/jsonl/jsonl.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/multi/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/multi/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/multi/multi.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/reportportal/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/reportportal/api.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/reportportal/reportportal.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/yamld/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/yamld/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/aggregator/yamld/yamld.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/fmf.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/reportportal.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/shvirt/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/shvirt/install.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/shvirt/reserve.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/testingfarm.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/virt/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/virt/kickstart.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/virt/ks.cfg +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/cli/virt/reserve.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/local/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/local/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/local/local.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/podman/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/podman/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/podman/podman.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/ssh/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/connection/ssh/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/beakerlib/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/beakerlib/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/command/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/command/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/command/command.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/RESULTS.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/TEST_CONTROL.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/discover.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/duration.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/fmf.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/metadata.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/reporter.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/scripts.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/executor/fmf/test-wrapper +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/adhoc/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/adhoc/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/adhoc/adhoc.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/simple/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/simple/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/orchestrator/simple/simple.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/anyconn/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/anyconn/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/anyconn/anyconn.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/local/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/local/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/local/local.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/podman/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/podman/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/podman/podman.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/podman/systemd.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/podman/utils.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/shvirt/PROTOCOL.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/shvirt/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/shvirt/SERVER.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/shvirt/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/shvirt/atex-virt-helper +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/tempvirt/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/tempvirt/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/tempvirt/tempvirt.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/tempvirt/utils.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/testingfarm/README.md +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/testingfarm/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/testingfarm/cleaning.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/provisioner/testingfarm/testingfarm.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/dedent.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/loggers.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/named_mapping.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/nonblock_line_reader.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/path.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/ssh.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/atex/util/threads.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/aggregator/conftest.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/aggregator/shared.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/aggregator/test_jsonl.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/aggregator/test_jsonl_gzip.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/aggregator/test_jsonl_lzma.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/aggregator/test_multi.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/aggregator/test_yamld.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/conftest.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/connection/test_ssh.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/conftest.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/libraries/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/libraries/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/libraries/rlimport.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/libraries/rlimport_all.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/reboot/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/reboot/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/reboot/reboot.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_fail.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_noend.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/reboot/reboot_rlrun.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/results/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/results/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/results/report_result.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/results/submit_log.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/sanity/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/sanity/fallback_status.sh +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/fmf_trees/sanity/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/test_libraries.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/test_reboot.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/test_results.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/beakerlib/test_sanity.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/command/conftest.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/command/test_command.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/conftest.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/conftest.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/cwd/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/cwd/file_in_fmfdir +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/cwd/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/cwd/subdir/file_in_subdir +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/cwd/subdir/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/discover/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/discover/extlib/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/discover/extlib/extfunc/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/discover/extlib/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/discover/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/discover/mylib/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/discover/subdir/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/env/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/env/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/adjusted.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/disabled.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/environment.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/filters.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/inherit/child/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/inherit/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/manual.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/nontest.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/plans/filtered.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/plans/with_env.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/simple/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/story.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/metadata/virtual.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/misc/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/misc/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/pkgs/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/pkgs/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/pty/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/pty/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/reboot/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/reboot/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/results/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/results/functions +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/results/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/results/randfile +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/user/.fmf/version +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/fmf_trees/user/main.fmf +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_cwd.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_discover.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_env.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_metadata.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_misc.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_pkgs.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_pty.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_reboot.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_results.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/executor/fmf/test_user.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/orchestrator/conftest.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/orchestrator/test_adhoc.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/provisioner/shared.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/provisioner/test_anyconn.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/provisioner/test_local.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/provisioner/test_podman.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/provisioner/test_podman_systemd.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/provisioner/test_tempvirt.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/provisioner/test_testingfarm.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/testutil/__init__.py +0 -0
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/testutil/ssh.py +1 -1
- {atex-2.0.dev1 → atex-2.0.dev3}/tests/testutil/timeout.py +0 -0
|
@@ -21,7 +21,7 @@ jobs:
|
|
|
21
21
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
22
22
|
runs-on: ubuntu-latest
|
|
23
23
|
steps:
|
|
24
|
-
- uses: actions/checkout@
|
|
24
|
+
- uses: actions/checkout@v7
|
|
25
25
|
|
|
26
26
|
- name: Post-process .md and __init__.py files
|
|
27
27
|
run: ./.github/scripts/pdoc/post_process_repo.sh
|
|
@@ -40,9 +40,9 @@ jobs:
|
|
|
40
40
|
- name: Generate docs
|
|
41
41
|
run: pdoc -n -d markdown -t pdoc_templates -o docs ./atex '!atex.cli'
|
|
42
42
|
|
|
43
|
-
- uses: actions/upload-pages-artifact@
|
|
43
|
+
- uses: actions/upload-pages-artifact@v5
|
|
44
44
|
with:
|
|
45
45
|
path: docs
|
|
46
46
|
|
|
47
|
-
- uses: actions/deploy-pages@
|
|
47
|
+
- uses: actions/deploy-pages@v5
|
|
48
48
|
id: deployment
|
|
@@ -11,7 +11,7 @@ jobs:
|
|
|
11
11
|
environment:
|
|
12
12
|
name: testing-farm
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v7
|
|
15
15
|
- run: sudo apt-get install -y python3-pytest python3-pytest-xdist
|
|
16
16
|
- run: python3 -m pip install .
|
|
17
17
|
- name: Run tests
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
provisioner-podman:
|
|
25
25
|
runs-on: ubuntu-26.04
|
|
26
26
|
steps:
|
|
27
|
-
- uses: actions/checkout@
|
|
27
|
+
- uses: actions/checkout@v7
|
|
28
28
|
- run: sudo apt-get install -y python3-pytest podman
|
|
29
29
|
- run: python3 -m pip install .
|
|
30
30
|
- name: Run tests
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
provisioners-small:
|
|
35
35
|
runs-on: ubuntu-26.04
|
|
36
36
|
steps:
|
|
37
|
-
- uses: actions/checkout@
|
|
37
|
+
- uses: actions/checkout@v7
|
|
38
38
|
- run: sudo apt-get install -y python3-pytest rsync
|
|
39
39
|
- run: python3 -m pip install .
|
|
40
40
|
- name: Run tests
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
connection:
|
|
47
47
|
runs-on: ubuntu-26.04
|
|
48
48
|
steps:
|
|
49
|
-
- uses: actions/checkout@
|
|
49
|
+
- uses: actions/checkout@v7
|
|
50
50
|
- run: sudo apt-get install -y python3-pytest podman openssh-client
|
|
51
51
|
- run: python3 -m pip install .
|
|
52
52
|
- name: Run tests
|
|
@@ -67,7 +67,7 @@ jobs:
|
|
|
67
67
|
backend: ssh
|
|
68
68
|
name: executors-${{ matrix.image }}-${{ matrix.backend }}
|
|
69
69
|
steps:
|
|
70
|
-
- uses: actions/checkout@
|
|
70
|
+
- uses: actions/checkout@v7
|
|
71
71
|
- run: sudo apt-get install -y python3-pytest podman openssh-client rsync
|
|
72
72
|
- run: python3 -m pip install .
|
|
73
73
|
- name: Run tests
|
|
@@ -79,7 +79,7 @@ jobs:
|
|
|
79
79
|
executors-small:
|
|
80
80
|
runs-on: ubuntu-26.04
|
|
81
81
|
steps:
|
|
82
|
-
- uses: actions/checkout@
|
|
82
|
+
- uses: actions/checkout@v7
|
|
83
83
|
- run: sudo apt-get install -y python3-pytest
|
|
84
84
|
- run: python3 -m pip install .
|
|
85
85
|
- name: Run tests
|
|
@@ -92,7 +92,7 @@ jobs:
|
|
|
92
92
|
aggregators:
|
|
93
93
|
runs-on: ubuntu-26.04
|
|
94
94
|
steps:
|
|
95
|
-
- uses: actions/checkout@
|
|
95
|
+
- uses: actions/checkout@v7
|
|
96
96
|
- run: sudo apt-get install -y python3-pytest
|
|
97
97
|
- run: python3 -m pip install .
|
|
98
98
|
- name: Run tests
|
|
@@ -102,7 +102,7 @@ jobs:
|
|
|
102
102
|
orchestrators:
|
|
103
103
|
runs-on: ubuntu-26.04
|
|
104
104
|
steps:
|
|
105
|
-
- uses: actions/checkout@
|
|
105
|
+
- uses: actions/checkout@v7
|
|
106
106
|
- run: sudo apt-get install -y python3-pytest
|
|
107
107
|
- run: python3 -m pip install .
|
|
108
108
|
- name: Run tests
|
|
@@ -9,7 +9,7 @@ jobs:
|
|
|
9
9
|
ruff:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
|
-
- uses: actions/checkout@
|
|
12
|
+
- uses: actions/checkout@v7
|
|
13
13
|
- name: Install ruff
|
|
14
14
|
run: python3 -m pip install ruff
|
|
15
15
|
- name: Run ruff check
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
flake8-picky-parentheses:
|
|
19
19
|
runs-on: ubuntu-latest
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v7
|
|
22
22
|
- name: Install flake8-picky-parentheses
|
|
23
23
|
run: python3 -m pip install flake8 flake8-picky-parentheses
|
|
24
24
|
- name: Run flake8 check
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
markdown:
|
|
32
32
|
runs-on: ubuntu-latest
|
|
33
33
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@v7
|
|
35
35
|
- name: No double-space for line break
|
|
36
36
|
run: >
|
|
37
37
|
! grep -H --include='*.md' ' $' -r .
|
|
@@ -39,7 +39,7 @@ jobs:
|
|
|
39
39
|
yamllint:
|
|
40
40
|
runs-on: ubuntu-latest
|
|
41
41
|
steps:
|
|
42
|
-
- uses: actions/checkout@
|
|
42
|
+
- uses: actions/checkout@v7
|
|
43
43
|
- name: Install yamllint
|
|
44
44
|
run: python3 -m pip install yamllint
|
|
45
45
|
- name: Run yamllint check
|
|
@@ -69,7 +69,7 @@ jobs:
|
|
|
69
69
|
subtests-subresults:
|
|
70
70
|
runs-on: ubuntu-latest
|
|
71
71
|
steps:
|
|
72
|
-
- uses: actions/checkout@
|
|
72
|
+
- uses: actions/checkout@v7
|
|
73
73
|
- name: Ensure subtests are not named "subresults"
|
|
74
74
|
run: |
|
|
75
75
|
! grep -r subresult *
|
|
@@ -77,7 +77,7 @@ jobs:
|
|
|
77
77
|
no-binary-files:
|
|
78
78
|
runs-on: ubuntu-latest
|
|
79
79
|
steps:
|
|
80
|
-
- uses: actions/checkout@
|
|
80
|
+
- uses: actions/checkout@v7
|
|
81
81
|
- name: Ensure there are no unexpected binary files
|
|
82
82
|
run: |
|
|
83
83
|
# ASCII only (printable + spaces)
|
|
@@ -178,3 +178,21 @@ ie. for specific platform or test names.
|
|
|
178
178
|
|
|
179
179
|
Useful for test suites with huge amounts of results, to lighten the load
|
|
180
180
|
on ReportPortal's database.
|
|
181
|
+
|
|
182
|
+
## Limitations
|
|
183
|
+
|
|
184
|
+
### Subtest results before test result
|
|
185
|
+
|
|
186
|
+
ReportPortal needs test results to be "finished" (closed). Here, that is always
|
|
187
|
+
done after the first test-only result is ingested (without a `name` field),
|
|
188
|
+
causing any subsequent results, both subtest and non-subtest for that one test,
|
|
189
|
+
to be ignored.
|
|
190
|
+
|
|
191
|
+
This is NOT an issue when ingesting multiple tests with the same name (multiple
|
|
192
|
+
`.ingest()` calls), even on the same platform - that is fine and works well via
|
|
193
|
+
the native RP "retries" concept.\
|
|
194
|
+
However, from the artifacts given to one `.ingest()`, only the results up to
|
|
195
|
+
and including the first test-only are processed.
|
|
196
|
+
|
|
197
|
+
Chances are this is not something relevant to you - tests typically always
|
|
198
|
+
report subtest results before one final test-only result.
|
|
@@ -13,7 +13,7 @@ def make_helper_cmd(args):
|
|
|
13
13
|
"ssh",
|
|
14
14
|
"-oLogLevel=ERROR",
|
|
15
15
|
"-oStrictHostKeyChecking=no", "-oUserKnownHostsFile=/dev/null",
|
|
16
|
-
"-oConnectionAttempts=3", "-oServerAliveCountMax=
|
|
16
|
+
"-oConnectionAttempts=3", "-oServerAliveCountMax=10", "-oServerAliveInterval=30",
|
|
17
17
|
"-oTCPKeepAlive=no", "-oEscapeChar=none", "-oRequestTTY=no",
|
|
18
18
|
f"-oIdentityFile={str(Path(args.helper_sshkey).absolute())}",
|
|
19
19
|
f"-oUser={args.helper_user}", f"-oHostname={args.helper_host}",
|
|
@@ -129,7 +129,6 @@ def install(args):
|
|
|
129
129
|
"--graphics", "none",
|
|
130
130
|
"--console", "pty",
|
|
131
131
|
"--rng", "/dev/urandom",
|
|
132
|
-
"--os-variant", "rhel8-unknown",
|
|
133
132
|
"--extra-args", (
|
|
134
133
|
"brltty=no " # avoid heavy console spam on missing devices
|
|
135
134
|
"mitigations=off " # make things a bit faster during install
|
|
@@ -200,6 +200,13 @@ class ManagedSSHConnection(Connection):
|
|
|
200
200
|
self._tmpdir = None
|
|
201
201
|
self._master_proc = None
|
|
202
202
|
|
|
203
|
+
def _log_unique_options(self):
|
|
204
|
+
return " ".join(
|
|
205
|
+
f"{key}={shlex.quote(str(value))}"
|
|
206
|
+
for key, value in self.options.items()
|
|
207
|
+
if key not in DEFAULT_OPTIONS or value != DEFAULT_OPTIONS[key]
|
|
208
|
+
)
|
|
209
|
+
|
|
203
210
|
def assert_master(self):
|
|
204
211
|
proc = self._master_proc
|
|
205
212
|
if not proc:
|
|
@@ -219,7 +226,7 @@ class ManagedSSHConnection(Connection):
|
|
|
219
226
|
proc = self._master_proc
|
|
220
227
|
if not proc:
|
|
221
228
|
return
|
|
222
|
-
self.logger.info(f"disconnecting: {self.
|
|
229
|
+
self.logger.info(f"disconnecting: {self._log_unique_options()}")
|
|
223
230
|
proc.kill()
|
|
224
231
|
# don't zombie forever, return EPIPE on any attempts to write to us
|
|
225
232
|
proc.stdout.close()
|
|
@@ -242,7 +249,7 @@ class ManagedSSHConnection(Connection):
|
|
|
242
249
|
sock = self._tmpdir / "control.sock"
|
|
243
250
|
|
|
244
251
|
if not self._master_proc:
|
|
245
|
-
self.logger.info(f"connecting: {self.
|
|
252
|
+
self.logger.info(f"connecting: {self._log_unique_options()}")
|
|
246
253
|
options = self.options.copy()
|
|
247
254
|
options["SessionType"] = "none"
|
|
248
255
|
options["ControlMaster"] = "yes"
|
|
@@ -44,6 +44,8 @@ class BeakerlibExecutor(FMFExecutor):
|
|
|
44
44
|
# if the passed file looks like a rlPhase* journal, skip it too
|
|
45
45
|
[[ $test_name == @(Setup|Test|Cleanup) ]] && log=
|
|
46
46
|
[[ $log == */tmp.* ]] && ! grep -qv '^$\|^::' "$log" && log=
|
|
47
|
+
# replace ASCII controls, double quotes, backslashes; preserve spaces
|
|
48
|
+
test_name=${test_name//[[:cntrl:]\"\\]/_}
|
|
47
49
|
# if log file was specified, create a files[] entry for it
|
|
48
50
|
if [[ -f $log ]]; then
|
|
49
51
|
size=$(stat -L -c '%s' "$log")
|
|
@@ -157,7 +159,7 @@ class BeakerlibExecutor(FMFExecutor):
|
|
|
157
159
|
check=True,
|
|
158
160
|
)
|
|
159
161
|
|
|
160
|
-
def run_test(self,
|
|
162
|
+
def run_test(self, test_name, artifacts, *, env=None):
|
|
161
163
|
# create BEAKERLIB_DIR, symlink metadata.yaml to it
|
|
162
164
|
quoted_dir = shlex.quote(str(self.work_dir / "beakerlib"))
|
|
163
165
|
# prepare metadata.yaml for rlImport --all
|
|
@@ -186,7 +188,7 @@ class BeakerlibExecutor(FMFExecutor):
|
|
|
186
188
|
}
|
|
187
189
|
env = beakerlib_env if env is None else env | beakerlib_env
|
|
188
190
|
|
|
189
|
-
return super().run_test(
|
|
191
|
+
return super().run_test(test_name, artifacts, env=env)
|
|
190
192
|
|
|
191
193
|
def eval_exit_code(self, test_name, reporter, exit_code): # noqa: ARG002, PLR6301
|
|
192
194
|
if reporter.nameless_result_seen:
|
|
@@ -188,7 +188,10 @@ class TestControl:
|
|
|
188
188
|
if written == 0:
|
|
189
189
|
raise BadControlError("EOF when reading data")
|
|
190
190
|
file_length -= written
|
|
191
|
-
yield
|
|
191
|
+
# yield only if there is still data left to be read next,
|
|
192
|
+
# fall through to .report() if we already read everything
|
|
193
|
+
if file_length > 0:
|
|
194
|
+
yield
|
|
192
195
|
|
|
193
196
|
self.logger.debug("file recv ended")
|
|
194
197
|
|
|
@@ -69,16 +69,20 @@ def FMFPriorityMixin(fmf_tests): # noqa: N802
|
|
|
69
69
|
def priority(name):
|
|
70
70
|
return fmf_tests.data[name].get("extra-priority", 0)
|
|
71
71
|
|
|
72
|
-
# this will be >0 if there are higher-than-0 priority tests,
|
|
73
|
-
# and <0 if there are no 0-priority tests left
|
|
74
|
-
# - in either case, we want the highest priority
|
|
75
72
|
best = max(to_run, key=priority)
|
|
76
|
-
|
|
77
|
-
return best
|
|
73
|
+
highest_prio = priority(best)
|
|
78
74
|
|
|
79
|
-
#
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
# tests with a positive prio run first; pick highest-prio one
|
|
76
|
+
if highest_prio > 0:
|
|
77
|
+
return best
|
|
78
|
+
# only zero or lower prio left, delegate any zero-prio in orig order
|
|
79
|
+
# - these must not contain non-zero-prio tests, those run after
|
|
80
|
+
elif highest_prio == 0:
|
|
81
|
+
zero_prio = [name for name in to_run if priority(name) == 0]
|
|
82
|
+
return super().next_test(zero_prio, previous)
|
|
83
|
+
# only negative priorities remain; pick highest-prio one
|
|
84
|
+
else:
|
|
85
|
+
return best
|
|
82
86
|
|
|
83
87
|
return FMFPriorityMixin
|
|
84
88
|
|
|
@@ -347,11 +347,22 @@ class SharedVirtProvisioner(Provisioner):
|
|
|
347
347
|
else:
|
|
348
348
|
break
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
# .stop() or .clear() was called while we were reserving,
|
|
351
|
+
# release the just-reserved Remote
|
|
352
|
+
abort = False
|
|
351
353
|
with self._lock:
|
|
352
|
-
self.
|
|
353
|
-
|
|
354
|
-
|
|
354
|
+
if self._to_reserve <= 0:
|
|
355
|
+
abort = True
|
|
356
|
+
else:
|
|
357
|
+
self._to_reserve -= 1
|
|
358
|
+
self._remotes.add(remote)
|
|
359
|
+
self._reserving_remotes.add(remote)
|
|
360
|
+
if abort:
|
|
361
|
+
self.logger.debug(f"releasing unrequested {remote}")
|
|
362
|
+
remote.release()
|
|
363
|
+
continue
|
|
364
|
+
|
|
365
|
+
self.logger.debug(f"created new {remote}")
|
|
355
366
|
self._reserving_events.release(1)
|
|
356
367
|
|
|
357
368
|
# delay for reserve_delay before reserving more
|
|
@@ -470,10 +481,8 @@ class SharedVirtProvisioner(Provisioner):
|
|
|
470
481
|
return None
|
|
471
482
|
|
|
472
483
|
def clear(self):
|
|
473
|
-
#
|
|
474
|
-
#
|
|
475
|
-
# it back to >= 0 and a follow-up .get_remote() will get the one
|
|
476
|
-
# Remote that was reserved before
|
|
484
|
+
# any reservation in progress will be released, not returned
|
|
485
|
+
# via .get_remote(), when it completes
|
|
477
486
|
with self._lock:
|
|
478
487
|
self._to_reserve = 0
|
|
479
488
|
|
|
@@ -673,23 +673,32 @@ class Reserve:
|
|
|
673
673
|
# (it will be failing to login for a while, until the reserve test
|
|
674
674
|
# installs our ssh pubkey into authorized_keys)
|
|
675
675
|
ssh_cmd = (
|
|
676
|
-
"ssh", "-q", "-i", ssh_key.absolute(),
|
|
676
|
+
"ssh", "-q", "-i", ssh_key.absolute(),
|
|
677
677
|
"-oStrictHostKeyChecking=no", "-oUserKnownHostsFile=/dev/null",
|
|
678
|
-
"-oBatchMode=yes",
|
|
678
|
+
"-oBatchMode=yes",
|
|
679
|
+
f"{ssh_user}@{ssh_host}",
|
|
679
680
|
)
|
|
680
681
|
while True:
|
|
681
682
|
time.sleep(1)
|
|
682
683
|
self.request.assert_alive()
|
|
683
684
|
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
685
|
+
self.logger.info(f"request {self.request.id} trying ssh {ssh_user}@{ssh_host}")
|
|
686
|
+
try:
|
|
687
|
+
proc = subprocess.run(
|
|
688
|
+
(*ssh_cmd, "exit 123"),
|
|
689
|
+
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
|
|
690
|
+
# don't get stuck in KEX after TCP is already established
|
|
691
|
+
timeout=300,
|
|
692
|
+
)
|
|
693
|
+
except subprocess.TimeoutExpired:
|
|
694
|
+
pass
|
|
695
|
+
else:
|
|
696
|
+
if proc.returncode == 123:
|
|
697
|
+
break
|
|
690
698
|
|
|
691
699
|
# run OS cleaning script (if requested)
|
|
692
700
|
if self._os_cleaning:
|
|
701
|
+
self.logger.info(f"request {self.request.id} doing os_cleaning")
|
|
693
702
|
util.subprocess_log(
|
|
694
703
|
(*ssh_cmd, "bash"),
|
|
695
704
|
logger=self.logger,
|
|
@@ -5,11 +5,8 @@ formatting, subprocess wrappers, whatever) accessible from the `util.*`
|
|
|
5
5
|
namespace, while being able to break them down into multiple `*.py` files
|
|
6
6
|
for readability.
|
|
7
7
|
|
|
8
|
-
These multiple `*.py` files then get automatically imported into one `globals()`
|
|
9
|
-
of the entire `util` module (package), appearing as a singular `util`.
|
|
10
|
-
|
|
11
8
|
Since the individual submodules cannot easily `from .* import *` themselves,
|
|
12
|
-
and since the intention is to give the impression of a single big `util
|
|
9
|
+
and since the intention is to give the impression of a single big `util` module,
|
|
13
10
|
any local/relative imports between files should extract the necessary
|
|
14
11
|
identifiers via ie.
|
|
15
12
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ruff: noqa: F401
|
|
2
|
+
|
|
3
|
+
from .dedent import dedent
|
|
4
|
+
from .loggers import get_loggers
|
|
5
|
+
from .named_mapping import NamedMapping
|
|
6
|
+
from .nonblock_line_reader import BufferFullError, NonblockLineReader
|
|
7
|
+
from .null_logger import NULL_LOGGER
|
|
8
|
+
from .path import normalize_path
|
|
9
|
+
from .ssh import blocking_wait_for_sshd, default_ssh_key, ssh_keygen, wait_for_sshd
|
|
10
|
+
from .subprocess import subprocess_log, subprocess_stream
|
|
11
|
+
from .threads import ThreadJoin, ThreadJoinQueue, ThreadResult
|
|
@@ -44,7 +44,11 @@ def subprocess_stream(cmd, *, stream="stdout", check=False, input=None, **kwargs
|
|
|
44
44
|
proc.stdin.write(input)
|
|
45
45
|
except BrokenPipeError:
|
|
46
46
|
pass
|
|
47
|
-
|
|
47
|
+
# TextIOWrapper.close() may still try to write buffered data
|
|
48
|
+
try:
|
|
49
|
+
proc.stdin.close()
|
|
50
|
+
except BrokenPipeError:
|
|
51
|
+
pass
|
|
48
52
|
line_stream = getattr(proc, stream)
|
|
49
53
|
for line in line_stream:
|
|
50
54
|
yield line.rstrip("\n")
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import importlib
|
|
2
|
-
import inspect
|
|
3
|
-
import pkgutil
|
|
4
|
-
|
|
5
|
-
__all__ = []
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def __dir__():
|
|
9
|
-
return __all__
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
# this is the equivalent of 'from .submod import *' for all submodules
|
|
13
|
-
# (function to avoid polluting global namespace with extra variables)
|
|
14
|
-
def _import_submodules():
|
|
15
|
-
def import_obj(key, attr):
|
|
16
|
-
# do not override already processed objects (avoid duplicates)
|
|
17
|
-
assert key not in __all__, f"tried to override already-imported '{key}'"
|
|
18
|
-
globals()[key] = attr
|
|
19
|
-
__all__.append(key)
|
|
20
|
-
|
|
21
|
-
for info in pkgutil.iter_modules(__spec__.submodule_search_locations):
|
|
22
|
-
mod = importlib.import_module(f".{info.name}", __name__)
|
|
23
|
-
|
|
24
|
-
# if the module defines __all__, just use it
|
|
25
|
-
if hasattr(mod, "__all__"):
|
|
26
|
-
for key in mod.__all__:
|
|
27
|
-
import_obj(key, getattr(mod, key))
|
|
28
|
-
|
|
29
|
-
else:
|
|
30
|
-
for key in dir(mod):
|
|
31
|
-
# https://docs.python.org/3/reference/executionmodel.html#binding-of-names
|
|
32
|
-
if key.startswith("_"):
|
|
33
|
-
continue
|
|
34
|
-
# import any classes or functions which are directly defined
|
|
35
|
-
# by the module, avoiding any foreign imports
|
|
36
|
-
attr = getattr(mod, key)
|
|
37
|
-
if inspect.isroutine(attr) or inspect.isclass(attr):
|
|
38
|
-
if attr.__module__ == mod.__name__:
|
|
39
|
-
import_obj(key, attr)
|
|
40
|
-
# anything else is unsafe to import automatically
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
_import_submodules()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|