summaryrefslogtreecommitdiff
diff options
authorMichael Vogt <mvo@ubuntu.com>2017-10-17 12:33:27 +0200
committerMichael Vogt <mvo@ubuntu.com>2017-10-17 12:33:27 +0200
commit36016fa666e7276d20153bd24b2be5a04a288afb (patch)
tree570cf36eb924aa800592e38a07812635f4fc63db
parent1359c8ba0382db1ab51fc571be3565191e516371 (diff)
tests: check for invalid udev files during all testsdetect-invalid-udev
To prevent typos like https://github.com/snapcore/snapd/pull/3617/files#diff-ec8cacef522dbb27eeb9ceed25f03b22R249 this PR adds a check that ensures we never create invalid udev files during the tests.
-rw-r--r--spread.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/spread.yaml b/spread.yaml
index 19b45febde..810e8521f2 100644
--- a/spread.yaml
+++ b/spread.yaml
@@ -370,6 +370,12 @@ restore: |
rm -f $SPREAD_PATH/snapd-state.tar.gz
rm -rf ${GOPATH%%:*}/*
+restore-each: |
+ if grep "invalid .*snap.*.rules" /var/log/syslog; then
+ echo "Invalid udev file detected, test most likely broke it"
+ exit 1
+ fi
+
suites:
tests/main/:
summary: Full-system tests for snapd