[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/6] tests/qtest/migration: Run test_mode_reboot outside gitla
From: |
Nicholas Piggin |
Subject: |
[PATCH v2 1/6] tests/qtest/migration: Run test_mode_reboot outside gitlab CI |
Date: |
Tue, 28 May 2024 10:42:05 +1000 |
As Fabiano points out, this test isn't flaky it just can't run under
gitlab CI since runners have a very small shm size.
Suggested-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
tests/qtest/migration-test.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index b7e3406471..04bf1c0092 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -706,6 +706,14 @@ static int test_migrate_start(QTestState **from,
QTestState **to,
g_test_skip("/dev/shm is not supported");
return -1;
}
+ if (getenv("GITLAB_CI")) {
+ /*
+ * Gitlab runners are limited to 64MB shm size. See:
+ * https://lore.kernel.org/all/87ttq5fvh7.fsf@suse.de/
+ */
+ g_test_skip("/dev/shm is not supported in Gitlab CI environment");
+ return -1;
+ }
}
dst_state = (QTestMigrationState) { };
@@ -3506,15 +3514,7 @@ int main(int argc, char **argv)
test_precopy_file_offset);
migration_test_add("/migration/precopy/file/offset/bad",
test_precopy_file_offset_bad);
-
- /*
- * Our CI system has problems with shared memory.
- * Don't run this test until we find a workaround.
- */
- if (getenv("QEMU_TEST_FLAKY_TESTS")) {
- migration_test_add("/migration/mode/reboot", test_mode_reboot);
- }
-
+ migration_test_add("/migration/mode/reboot", test_mode_reboot);
migration_test_add("/migration/precopy/file/mapped-ram",
test_precopy_file_mapped_ram);
migration_test_add("/migration/precopy/file/mapped-ram/live",
--
2.43.0
- [PATCH v2 0/6] tests/qtest/migration-test: Improve and enable on ppc64, Nicholas Piggin, 2024/05/27
- [PATCH v2 1/6] tests/qtest/migration: Run test_mode_reboot outside gitlab CI,
Nicholas Piggin <=
- [PATCH v2 2/6] tests/qtest/migration-test: Fix and enable test_ignore_shared, Nicholas Piggin, 2024/05/27
- [PATCH v2 3/6] tests/qtest: Move common define from libqos-spapr.h to new ppc-util.h, Nicholas Piggin, 2024/05/27
- [PATCH v2 4/6] tests/qtest/migration-test: Quieten ppc64 QEMU warnigns, Nicholas Piggin, 2024/05/27
- [PATCH v2 5/6] tests/qtest/migration-test: Enable on ppc64 TCG, Nicholas Piggin, 2024/05/27
- [PATCH v2 6/6] tests/qtest/migration-test: Use custom asm bios for ppc64, Nicholas Piggin, 2024/05/27