Merging upstream version 2.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
078c0dbcc0
commit
635faa7346
571 changed files with 10718 additions and 2738 deletions
|
@ -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 """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue