Skip to content

Commit c54bb57

Browse files
committed
testing flatpak tls setup
1 parent 1b39aad commit c54bb57

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/scripts/script.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ else
138138
cmd_user_prefix bash -c "pytest -v --timeout=300 -r sx --color=yes --suppress-no-test-exit-code --durations=20 --pyargs pulp_container.tests.functional -m parallel -n 8 --nightly"
139139
cmd_user_prefix bash -c "pytest -v --timeout=300 -r sx --color=yes --suppress-no-test-exit-code --durations=20 --pyargs pulp_container.tests.functional -m 'not parallel' --nightly"
140140
else
141-
cmd_user_prefix bash -c "pytest -v --timeout=300 -r sx --color=yes --suppress-no-test-exit-code --durations=20 --pyargs pulp_container.tests.functional -m parallel -n 8"
142-
cmd_user_prefix bash -c "pytest -v --timeout=300 -r sx --color=yes --suppress-no-test-exit-code --durations=20 --pyargs pulp_container.tests.functional -m 'not parallel'"
141+
# cmd_user_prefix bash -c "pytest -v --timeout=300 -r sx --color=yes --suppress-no-test-exit-code --durations=20 --pyargs pulp_container.tests.functional -m parallel -n 8"
142+
# cmd_user_prefix bash -c "pytest -v --timeout=300 -r sx --color=yes --suppress-no-test-exit-code --durations=20 --pyargs pulp_container.tests.functional -m 'not parallel'"
143+
cmd_user_prefix bash -c "pytest -v --timeout=300 -r sx --color=yes --suppress-no-test-exit-code --durations=20 --pyargs pulp_container.tests.functional -k 'test_flatpak'"
143144
fi
144145
fi
145146
pushd ../pulp-cli

pulp_container/tests/functional/api/test_flatpak.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def _ensure_system_trust():
2121
"""
2222
anchor = "/etc/pki/ca-trust/source/anchors/pulp_webserver.crt"
2323
if os.path.exists(PULP_CA_CERT) and not os.path.exists(anchor):
24-
subprocess.check_call(["cp", PULP_CA_CERT, anchor])
25-
subprocess.check_call(["update-ca-trust"])
24+
subprocess.check_call(["sudo", "cp", PULP_CA_CERT, anchor], shell=True)
25+
subprocess.check_call(["sudo", "update-ca-trust"], shell=True)
2626
# Re-patch certifi in case update-ca-trust regenerated the bundle it points to.
2727
result = subprocess.run(
2828
["python3", "-c", "import certifi; print(certifi.where())"],

0 commit comments

Comments
 (0)