Skip to content

Commit 65cb0ea

Browse files
authored
tests: match legacy create-ns output case-insensitively
1 parent a3a0cd3 commit 65cb0ea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/nvme_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,9 @@ def _get_created_nsid(self, stdout):
498498
try:
499499
json_output = json.loads(stdout)
500500
except json.JSONDecodeError:
501-
match = re.search(r"created nsid:\s*(\d+)", stdout)
501+
match = re.search(
502+
r"created nsid:\s*(\d+)", stdout, re.IGNORECASE,
503+
)
502504
self.assertIsNotNone(
503505
match,
504506
"ERROR : expected create-ns output with nsid, "

0 commit comments

Comments
 (0)