1
0
Fork 0

Merging upstream version 2.12.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-20 08:10:44 +01:00
parent 078c0dbcc0
commit 635faa7346
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
571 changed files with 10718 additions and 2738 deletions

View file

@ -50,21 +50,17 @@ class TestNVMeGetLbaStatusCmd(TestNVMe):
- Returns:
- 0 on success, error code on failure.
"""
err = 0
get_lba_status_cmd = "nvme get-lba-status " + self.ctrl + \
" --namespace-id=" + str(self.ns1) + \
" --start-lba=" + str(self.start_lba) + \
" --max-dw=" + str(self.max_dw) + \
" --action=" + str(self.action) + \
" --range-len=" + str(self.range_len)
get_lba_status_cmd = f"{self.nvme_bin} get-lba-status {self.ctrl} " + \
f"--namespace-id={str(self.ns1)} " + \
f"--start-lba={str(self.start_lba)} " + \
f"--max-dw={str(self.max_dw)} " + \
f"--action={str(self.action)} " + \
f"--range-len={str(self.range_len)}"
proc = subprocess.Popen(get_lba_status_cmd,
shell=True,
stdout=subprocess.PIPE,
encoding='utf-8')
get_lba_status_output = proc.communicate()[0]
print("\n" + get_lba_status_output + "\n")
err = proc.wait()
return err
return proc.wait()
def test_get_lba_status(self):
""" Testcase main """