Skip to content

Commit 0778575

Browse files
authored
Merge pull request eficode#56 from eficode/fix/linux-tests
Fix linux tests
2 parents 95ab7e2 + 793bfe4 commit 0778575

File tree

7 files changed

+10
-13
lines changed

7 files changed

+10
-13
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install test tools to Linux
5454
run: |
5555
sudo apt-get update
56-
sudo apt-get -y -q install xvfb scrot chromium-browser
56+
sudo apt-get -y -q install xvfb scrot
5757
touch ~/.Xauthority
5858
if: contains(matrix.os, 'ubuntu')
5959

@@ -70,15 +70,10 @@ jobs:
7070
python tests/atest/run_tests.py
7171
7272
- name: Archive acceptances test results
73-
uses: actions/upload-artifact@v1.0.0
73+
uses: actions/upload-artifact@v2.3.0
7474
with:
75-
name: log-${{ matrix.python-version }}-${{ matrix.os }}
76-
path: log.html
75+
name: output-${{ matrix.python-version }}-${{ matrix.os }}
76+
path: |
77+
log.html
78+
./*.png
7779
if: always() && job.status == 'failure'
78-
79-
- name: Archive acceptances test failure screenshot on Linux
80-
uses: actions/[email protected]
81-
with:
82-
name: screenshot-${{ matrix.python-version }}-${{ matrix.os }}
83-
path: /tmp/Atest.Calculator-screenshot-1.png
84-
if: always() && job.status == 'failure' && contains(matrix.os, 'ubuntu')

tests/atest/calculator.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*** Settings ***
2-
Library ImageHorizonLibrary ${CURDIR}${/}reference_images${/}calculator screenshot_folder=${TEMPDIR}
2+
Library ImageHorizonLibrary ${CURDIR}${/}reference_images${/}calculator screenshot_folder=${OUTPUT_DIR}
33

44
*** Test cases ***
55

tests/atest/calculator/calculator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ def close():
1313
sys.exit(0)
1414

1515

16-
eel.start('main.html', size=(300, 380))
16+
mode = 'edge' if os.name == 'nt' else 'chrome'
17+
18+
eel.start('main.html', size=(300, 380), mode=mode)
Binary file not shown.
Loading
Loading
Loading

0 commit comments

Comments
 (0)