Check to make sure an NFS file share is mounted

Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
Matthew Stidham
2021-03-17 12:55:24 -07:00
parent 3a0cfc04c3
commit 7bede86c9e

View File

@@ -712,9 +712,14 @@ Generic command layout:
dhcp = False
else:
dhcp = True
# print(port_list)
if 'nfs' in args.fs_type:
if [[ $(mount -l | grep nfs) ]]; then
pass
else:
raise ValueError("No nfs share is mounted")
else:
exit(1)
# exit(1)
ip_test = FileIOTest(args.mgr,
args.mgr_port,
ssid=args.ssid,