summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2022-02-27 12:21:58 -0800
committerLee Duncan <lduncan@suse.com>2022-03-01 10:43:51 -0800
commit1fdf3e4fa9e746469aede083c0f361fff152cd61 (patch)
tree293df8355e53eb4abb8b4fe313d4536fa4aa60b3 /test
parent87729e74cb28e7ae84dd109e1b7d91c3c36b839b (diff)
downloadopen-iscsi-1fdf3e4fa9e746469aede083c0f361fff152cd61.tar.gz
test: Fix bug/spelling error, cleanup messages
Fix a mispelling in run_parted() that mispelled "reason". Also, add some more verbose-level messages in run_bonnie() about what commands are being used.
Diffstat (limited to 'test')
-rw-r--r--test/harness/util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/harness/util.py b/test/harness/util.py
index d2a7b63..06636b3 100644
--- a/test/harness/util.py
+++ b/test/harness/util.py
@@ -339,7 +339,7 @@ def run_parted():
"""
(res, reason) = wipe_disc()
if res != 0:
- return (res, resason)
+ return (res, reason)
# ensure our partition file is not there, to be safe
if not wait_for_path(Global.partition, present=False, amt=30):
return (1, '%s: Partition already exists?' % Global.partition)
@@ -367,7 +367,7 @@ def run_mkfs():
def run_bonnie():
# make a temp dir and mount the device there
with tempfile.TemporaryDirectory() as tmp_dir:
- vprint('Mounting the filesystem')
+ vprint('Running "mount" to mount the filesystem')
res = run_cmd(['mount'] + Global.MOUNTOPTIONS + [Global.partition, tmp_dir])
if res != 0:
return (res, '%s: mount failed (%d)' % (Global.partition, res))
@@ -377,6 +377,7 @@ def run_bonnie():
if res != 0:
return (res, '%s: umount failed (%d)' % (tmp_dir, res))
# unmount the device and remove the temp dir
+ vprint('Running "unmount" to unmount the filesystem')
res = run_cmd(['umount', tmp_dir])
if res != 0:
return (res, '%s: umount failed (%d)' % (tmp_dir, res))