Commit Graph

14 Commits

Author SHA1 Message Date
Martin Pitt
ca4674f900 autopkgtests: Replace obsolete $ADT_* variables
Use their $AUTOPKGTEST_* equivalents.

These were introduced in autopkgtest 4.0 (June 2016), and all our CI
systems use a much newer version.

Gbp-Dch: Short
2019-03-01 09:17:36 +01:00
Martin Pitt
71d26a6a7a debian/tests/systemd-fsckd: Create /etc/default/grub.d if necessary 2016-11-09 13:27:00 +01:00
Martin Pitt
972e467665 debian/tests/systemd-fsckd: Robustify check for "unit was running"
In some cases ActiveEnterTimestampMonotonic is zero even for units that did
run. Stop trying to interpret individual properties and just rely on "systemctl
status" to do it for us.

This also shows the complete status output on test failure, which eases
debugging.

LP: #1624406
2016-09-19 22:36:59 +02:00
Martin Pitt
28b7a0b5b8 debian/tests/systemd-fsckd: Adjust was_running() to also work for version 230
The start time apparently does not appear in the ExecStart= property any more.
Query ActiveEnterTimestampMonotonic instead, which is a more "official"
property.

Also change is_active_unit() to allow easier debugging.
2016-06-21 23:39:22 +02:00
Martin Pitt
ca5b98fb13 debian/tests/systemd-fsckd: Use grub.d/50-cloudimg-settings.cfg as a template for generating our custom one
... instead of 90-autopkgtest.cfg. The latter does not exist on non-x86
architectures and is not relevant for this test.

This should fix the non-rebooting ppc64el instances in Ubuntu CI.
2016-02-18 17:54:30 +01:00
Martin Pitt
b231b2a125 debian/tests/systemd-fsckd: Tame overly strict test for failed plymouth unit
This is a race condition with plymouthd auto-stopping.

LP: #1543144
2016-02-08 22:45:11 +01:00
Martin Pitt
8d824b0945 Skip systemd-fsckd autopkgtest if /run/initramfs/fsck-root exists
I. e. the initramfs already ran fsck. Then systemd-fsck-root, fsckd etc. are
not supposed to run.

This is currently hidden by http://bugs.debian.org/783291, but once that gets
fixed this will cause the systemd-fsckd test to fail with current
initramfs-tools.
2015-08-04 15:24:23 +02:00
Martin Pitt
a0b8043597 systemd-fsckd autopkgtest: Stop using/asserting on lightdm
Just check that default.target is active. lightdm is prone to fail in test
environments, and fiddling with it in two other autopkgtests is sufficient.
2015-07-01 12:05:57 +02:00
Martin Pitt
4709beb607 systemd-fsckd autopkgtest: Fix test_systemd_fsck_with_plymouth_failure
Fix plymouthd status check to work under both Debian and Ubuntu.
2015-05-28 12:23:33 +02:00
Martin Pitt
825615532d systemd-fsckd: On Debian plymouth-start stays running, adjust was_running() for that
Fixes a bunch of test failures on Debian.
2015-05-28 12:01:54 +02:00
Martin Pitt
1369a1ee42 autopkgtest: Ship/use mock fsck from debian/tests, as it's missing in the 220 tarball
Fixed upstream in commit db47294f41, this can be reverted with the next upstream
release.
2015-05-26 07:22:45 +02:00
Martin Pitt
0931f09a80 systemd-fsckd autopkgtest: Stop assuming that /etc/default/grub.d/90-autopkgtest.cfg exists
This only exists in environments where autopkgtests' adt-setup-vm ran.
2015-05-12 09:48:46 +02:00
Martin Pitt
0849551008 debian/tests: Call /tmp/autopkgtest-reboot
To work with autopkgtest >= 3.11.1, which dropped the obsolete one in /sbin.
2015-03-04 22:44:36 +01:00
Didier Roche
23241ac43a Add autopkgtests for systemd-fsckd
They are mostly testing the robustness of the various daemons:
 - starting with or without plymouth
 - surviving kill of fsck, systemd-fsckd, systemd-fsck, plymouth

It will be possible to extend it later on with Control+C tests on plymouth
and eventually checking the protocol output.

LP: #1427312
2015-03-03 15:13:49 +01:00