mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 00:49:53 +00:00
trivial: fix nvme and ata self tests failing in buildd
The buildds can't write to /var/cache/fwupd, and for that matter fwupd shouldn't be writing during tests anyway.
This commit is contained in:
parent
48e42dce56
commit
0b7c0691e8
@ -24,6 +24,10 @@ fu_ata_id_func(void)
|
||||
g_autoptr(FuAtaDevice) dev = NULL;
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
ret = fu_context_load_quirks(ctx, FU_QUIRKS_LOAD_FLAG_NO_CACHE, &error);
|
||||
g_assert_no_error(error);
|
||||
g_assert(ret);
|
||||
|
||||
path = g_test_build_filename(G_TEST_DIST, "tests", "StarDrive-SBFM61.2.bin", NULL);
|
||||
if (!g_file_test(path, G_FILE_TEST_EXISTS) && ci == NULL) {
|
||||
g_test_skip("Missing StarDrive-SBFM61.2.bin");
|
||||
@ -55,6 +59,10 @@ fu_ata_oui_func(void)
|
||||
g_autoptr(FuAtaDevice) dev = NULL;
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
ret = fu_context_load_quirks(ctx, FU_QUIRKS_LOAD_FLAG_NO_CACHE, &error);
|
||||
g_assert_no_error(error);
|
||||
g_assert(ret);
|
||||
|
||||
path = g_test_build_filename(G_TEST_DIST, "tests", "Samsung SSD 860 EVO 500GB.bin", NULL);
|
||||
if (!g_file_test(path, G_FILE_TEST_EXISTS) && ci == NULL) {
|
||||
g_test_skip("Missing Samsung SSD 860 EVO 500GB.bin");
|
||||
|
@ -24,6 +24,10 @@ fu_nvme_cns_func(void)
|
||||
g_autoptr(FuNvmeDevice) dev = NULL;
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
ret = fu_context_load_quirks(ctx, FU_QUIRKS_LOAD_FLAG_NO_CACHE, &error);
|
||||
g_assert_no_error(error);
|
||||
g_assert(ret);
|
||||
|
||||
path = g_test_build_filename(G_TEST_DIST, "tests", "TOSHIBA_THNSN5512GPU7.bin", NULL);
|
||||
|
||||
if (!g_file_test(path, G_FILE_TEST_EXISTS) && ci == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user