tests: virtimetest: Skip more tests near year's end

All of these are affected by the same issue as the ones that
we're already skipping during this specific time interval.

Suggested-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Andrea Bolognani 2022-01-01 19:39:40 +01:00
parent 4e0acd34c9
commit 9be0889234

View File

@ -177,6 +177,18 @@ mymain(void)
TEST_LOCALOFFSET("VIR-00:30", 30 * 60);
TEST_LOCALOFFSET("VIR-01:30", 90 * 60);
/* experiments have shown that the following tests will fail
* during certain hours of Dec 31 or Jan 1 (depending on the
* TZ setting in the shell running the test, but in general
* for a period that apparently starts at 00:00:00 UTC Jan 1
* and continues for 1 - 2 hours). We've determined this is
* due to our inability to specify a timezone with DST on/off
* settings that make it truly *always* on DST - i.e. it is a
* failing of the test data, *not* of the function we are
* testing. So to test as much as possible, we still run these
* tests, except on Dec 31 and Jan 1.
*/
if (!isNearYearEnd()) {
/* test DST processing with timezones that always
* have DST in effect; what's more, cover a zone with
* with an unusual DST different than a usual one hour
@ -196,19 +208,6 @@ mymain(void)
((4 * 60) + 30) * 60);
TEST_LOCALOFFSET("VIR-12:00VID-13:00,1/00:00:00,364/23:59:59",
((13 * 60) + 0) * 60);
/* experiments have shown that the following tests will fail
* during certain hours of Dec 31 or Jan 1 (depending on the
* TZ setting in the shell running the test, but in general
* for a period that apparently starts at 00:00:00 UTC Jan 1
* and continues for 1 - 2 hours). We've determined this is
* due to our inability to specify a timezone with DST on/off
* settings that make it truly *always* on DST - i.e. it is a
* failing of the test data, *not* of the function we are
* testing. So to test as much as possible, we still run these
* tests, except on Dec 31 and Jan 1.
*/
if (!isNearYearEnd()) {
TEST_LOCALOFFSET("VIR02:45VID00:45,1/00:00:00,364/23:59:59",
-45 * 60);
TEST_LOCALOFFSET("VIR05:00VID04:00,1/00:00:00,364/23:59:59",