Skip to content

Commit 7a5473a

Browse files
committed
assign exit code
1 parent f8e2087 commit 7a5473a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
pipenv install;
2828
- name: Run Smoke Tests in Win
2929
run: |
30-
pipenv run pytest --fx-executable ./firefox/firefox -s -n 4 tests/security_and_privacy
30+
pipenv run pytest --fx-executable ./firefox/firefox -s -n 4 tests/security_and_privacy || TEST_EXIT_CODE=$?
3131
mv artifacts artifacts-win || true
3232
exit $TEST_EXIT_CODE
3333
- name: Upload artifacts

conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def log_content(opt_ci: bool, driver: Firefox, test_name: str) -> None:
4141
current_time = str(datetime.datetime.now())
4242
current_time = re.sub(r"[^\w_. -]", "_", current_time)
4343
fullpath_chrome = os.path.join(
44-
artifacts_loc, f"{test_name}_{current_time}_content.html"
44+
artifacts_loc, f"{test_name}_{current_time}_content.txt"
4545
)
4646
fullpath_content = os.path.join(
47-
artifacts_loc, f"{test_name}_{current_time}_chrome.html"
47+
artifacts_loc, f"{test_name}_{current_time}_chrome.txt"
4848
)
4949

5050
# Save Chrome context page source
@@ -55,7 +55,7 @@ def log_content(opt_ci: bool, driver: Firefox, test_name: str) -> None:
5555

5656
# Save Content context page source
5757
with open(fullpath_content, "w") as fh:
58-
output_contents = driver.page_source.replace("><", ">\n<")
58+
output_contents = driver.page_source
5959
fh.write(output_contents)
6060
return
6161

0 commit comments

Comments
 (0)