tests: Fix isoinfo test.

Also remove GUESTFS_ISO_SYSTEM_ID.

Fixes: commit 2f587bbaec
This commit is contained in:
Richard W.M. Jones
2021-04-03 11:57:11 +01:00
parent 278d0d3226
commit bf28bc01db
2 changed files with 1 additions and 8 deletions

View File

@@ -6882,8 +6882,7 @@ this will create the largest possible LV." };
tests = [
InitNone, Always, TestResult (
[["isoinfo_device"; "/dev/sdd"]],
"STREQ (ret->iso_system_id, GUESTFS_ISO_SYSTEM_ID) && "^
"STREQ (ret->iso_volume_id, \"CDROM\") && "^
"STREQ (ret->iso_volume_id, \"ISOIMAGE\") && "^
"STREQ (ret->iso_volume_set_id, \"\") && "^
"ret->iso_volume_set_size == 1 && "^
"ret->iso_volume_sequence_number == 1 && "^

View File

@@ -56,12 +56,6 @@ let rec generate_c_api_tests () =
#include \"tests.h\"
#ifdef __linux__
#define GUESTFS_ISO_SYSTEM_ID \"LINUX\"
#else
#error Missing GUESTFS_ISO_SYSTEM_ID for the current OS
#endif
";
(* Generate a list of commands which are not tested anywhere. *)