Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Mar 27, 2024
1 parent e273aed commit 1040b8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/test/s2p_parser_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ TEST(S2pParserTest, ParseArguments_SCSI2Pi)
SetUpArgs(args, "-i1", "-n", "a:b:c", "test.hds");
properties = parser.ParseArguments(args, is_sasi);
EXPECT_EQ(2UL, properties.size());
EXPECT_EQ("a:b:c", properties["device.1.product_data"]);
EXPECT_EQ("a:b:c", properties["device.1.product"]);
EXPECT_EQ("test.hds", properties["device.1.params"]);
}

Expand Down Expand Up @@ -203,15 +203,15 @@ TEST(S2pParserTest, ParseArguments_BlueSCSI)
EXPECT_EQ(4UL, properties.size());
EXPECT_EQ("schd", properties["device.2.type"]);
EXPECT_EQ("512", properties["device.2.block_size"]);
EXPECT_EQ("vendor:product:revision", properties["device.2.product_data"]);
EXPECT_EQ("vendor:product:revision", properties["device.2.product"]);
EXPECT_EQ("HD2_vendor:product:revision.hds", properties["device.2.params"]);

SetUpArgs(args, "-B", "-n", "v:p:r", "HD2_vendor:product:revision.hds");
properties = parser.ParseArguments(args, is_sasi);
EXPECT_EQ(4UL, properties.size());
EXPECT_EQ("schd", properties["device.2.type"]);
EXPECT_EQ("512", properties["device.2.block_size"]);
EXPECT_EQ("v:p:r", properties["device.2.product_data"]) << "Explicit product data provided";
EXPECT_EQ("v:p:r", properties["device.2.product"]) << "Explicit product data provided";
EXPECT_EQ("HD2_vendor:product:revision.hds", properties["device.2.params"]);

SetUpArgs(args, "-B", "HD2vendor:product:revision.hds");
Expand All @@ -226,7 +226,7 @@ TEST(S2pParserTest, ParseArguments_BlueSCSI)
EXPECT_EQ(4UL, properties.size());
EXPECT_EQ("schd", properties["device.2.type"]);
EXPECT_EQ("4096", properties["device.2.block_size"]);
EXPECT_EQ("vendor:product:revision", properties["device.2.product_data"]);
EXPECT_EQ("vendor:product:revision", properties["device.2.product"]);
EXPECT_EQ("HD2_4096_vendor:product:revision.hds", properties["device.2.params"]);

SetUpArgs(args, "-B", "HD1.hds", "-B", "RE131.hds");
Expand Down

0 comments on commit 1040b8b

Please sign in to comment.