Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
add spread test for wayland #3759
Conversation
codecov-io
commented
Aug 17, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3759 +/- ##
==========================================
+ Coverage 75.81% 75.81% +<.01%
==========================================
Files 402 402
Lines 34783 34793 +10
==========================================
+ Hits 26371 26380 +9
- Misses 6539 6540 +1
Partials 1873 1873
Continue to review full report at Codecov.
|
| +prepare: | | ||
| + . $TESTSLIB/pkgdb.sh | ||
| + echo "Ensure we have a wayland compositor" | ||
| + distro_install_package weston |
sergiocazzolato
Aug 17, 2017
Contributor
This should go in the pkgdb.sh script, we started to install all the dependencies in the project preparation a time ago.
| +restore: | | ||
| + . $TESTSLIB/pkgdb.sh | ||
| + /usr/bin/killall -9 /usr/bin/weston || true | ||
| + distro_auto_remove_packages weston |
jdstrand
added some commits
Aug 18, 2017
|
@sergiocazzolato - I made the requested changes. This should be ready for another review. |
|
Note the zesty failure is unrelated:
|
|
@sergiocazzolato - can you take another look at this? It is passing and I addressed all your feedback. |
| + . $TESTSLIB/pkgdb.sh | ||
| + snap install --edge test-wayland | ||
| + | ||
| +restore: | |
|
LGMT, thanks for the test! |
|
Hmm, now the zesty-amd64 autopkgtest failed for this test, so I'll need to look at that. |
mvo5
approved these changes
Aug 25, 2017
Looks good, thanks for writing this test! Some small comments inside for your consideration.
| + | ||
| +prepare: | | ||
| + . $TESTSLIB/pkgdb.sh | ||
| + snap install --edge test-wayland |
mvo5
Aug 25, 2017
Collaborator
Our usual pattern for spread helpers is: test-snapd-*, i.e. test-snapd-wayland.
| + echo "Expected error with plug disconnected" | ||
| + | ||
| + echo "Stop weston compositor" | ||
| + /usr/bin/killall -9 /usr/bin/weston || true |
mvo5
Aug 25, 2017
Collaborator
I think we want this also in restore: to ensure if anything fails during the test we do proper cleanup.
jdstrand
Aug 25, 2017
Contributor
Note the comment below:
# If this is in 'restore', it hangs the test
jdstrand
Aug 25, 2017
Contributor
I've decided to add the killall to restore but leave it at the end of execute to prevent the hang in the normal case.
jdstrand
added some commits
Aug 25, 2017
|
@mvo, ok, comments addressed. Thanks for the review :) |
| + | ||
| +prepare: | | ||
| + . $TESTSLIB/pkgdb.sh | ||
| + snap install --edge test-snapd-wayland |
mvo5
Aug 25, 2017
Collaborator
One more thing - is test-snapd-wayland packaged somewhere? If there is a snapcraft.yaml for it, we should add it to tests/lib/snaps or if not add a comment where the git tree for this is.
jdstrand
Aug 25, 2017
Contributor
Yes, lp:~jdstrand/+git/test-snapd-wayland. I listed it in the description of the snap:
$ snap info test-snapd-wayland
name: test-snapd-wayland
summary: "Basic wayland test snap"
publisher: jdstrand
description: |
Basic wayland test snap
lp:~jdstrand/+git/test-snapd-wayland
...
jdstrand commentedAug 17, 2017
No description provided.