Skip to content

Commit

Permalink
Merge pull request eficode#56 from eficode/fix/linux-tests
Browse files Browse the repository at this point in the history
Fix linux tests
  • Loading branch information
Tattoo authored Dec 14, 2021
2 parents 95ab7e2 + 793bfe4 commit 0778575
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Install test tools to Linux
run: |
sudo apt-get update
sudo apt-get -y -q install xvfb scrot chromium-browser
sudo apt-get -y -q install xvfb scrot
touch ~/.Xauthority
if: contains(matrix.os, 'ubuntu')

Expand All @@ -70,15 +70,10 @@ jobs:
python tests/atest/run_tests.py
- name: Archive acceptances test results
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v2.3.0
with:
name: log-${{ matrix.python-version }}-${{ matrix.os }}
path: log.html
name: output-${{ matrix.python-version }}-${{ matrix.os }}
path: |
log.html
./*.png
if: always() && job.status == 'failure'

- name: Archive acceptances test failure screenshot on Linux
uses: actions/[email protected]
with:
name: screenshot-${{ matrix.python-version }}-${{ matrix.os }}
path: /tmp/Atest.Calculator-screenshot-1.png
if: always() && job.status == 'failure' && contains(matrix.os, 'ubuntu')
2 changes: 1 addition & 1 deletion tests/atest/calculator.robot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*** Settings ***
Library ImageHorizonLibrary ${CURDIR}${/}reference_images${/}calculator screenshot_folder=${TEMPDIR}
Library ImageHorizonLibrary ${CURDIR}${/}reference_images${/}calculator screenshot_folder=${OUTPUT_DIR}

*** Test cases ***

Expand Down
4 changes: 3 additions & 1 deletion tests/atest/calculator/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ def close():
sys.exit(0)


eel.start('main.html', size=(300, 380))
mode = 'edge' if os.name == 'nt' else 'chrome'

eel.start('main.html', size=(300, 380), mode=mode)
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0778575

Please sign in to comment.