in fiosynth_lib/fiosynth.py [0:0]
def checkMounted(device, dut):
cmd = "grep -c %s /proc/mounts" % device
if not dut.inLocalMode():
dutSsh = getSshProc(dut)
out, err = dutSsh.communicate(cmd)
mount = out.strip()
else:
mount = cmdline(cmd)
if int(mount) > 0:
return True
else:
return False