summaryrefslogtreecommitdiff
path: root/test-cli/test/helpers/DiskHelpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli/test/helpers/DiskHelpers.py')
-rw-r--r--test-cli/test/helpers/DiskHelpers.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-cli/test/helpers/DiskHelpers.py b/test-cli/test/helpers/DiskHelpers.py
new file mode 100644
index 0000000..79b661e
--- /dev/null
+++ b/test-cli/test/helpers/DiskHelpers.py
@@ -0,0 +1,9 @@
+import stat
+import os
+
+
+def disk_exists(path):
+ try:
+ return stat.S_ISBLK(os.stat(path).st_mode)
+ except:
+ return False