A recent commit in nvme-cli v2.6 changed the single letter of the
--opcode option from -o to -O. This caused the failure of nvme/046. To
make the test case work regardless of the nvme-cli version, replace -o
with --opcode.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
chmod g+r,o+r "$ngdev"
- if ! _run_user "nvme io-passthru ${ngdev} -o 2 -l 4096 \
+ if ! _run_user "nvme io-passthru ${ngdev} --opcode 2 -l 4096 \
-n $nsid -r" >> "${FULL}" 2>&1; then
echo "Error: io-passthru read failed"
fi
- if _run_user "echo hello | nvme io-passthru ${ngdev} -o 1 -l 4096 \
- -n $nsid -r" >> "${FULL}" 2>&1; then
+ if _run_user "echo hello | nvme io-passthru ${ngdev} --opcode 1 \
+ -l 4096 -n $nsid -r" >> "${FULL}" 2>&1; then
echo "Error: io-passthru write passed (unexpected)"
fi