id_ctrl_cmd = f"nvme id-ctrl {self.ctrl} --output-format=json" proc = subprocess.Popen(id_ctrl_cmd, shell=True, stdout=subprocess.PIPE, encoding='utf-8') err = proc.wait() self.assertEqual(err, 0, "ERROR : reading id-ctrl failed") json_output = json.loads(proc.stdout.read()...