summaryrefslogtreecommitdiffstats
path: root/external/tests/testmod.py
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-12-13 00:05:49 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-12-13 00:05:49 +0100
commit9c3d5c48694db1018d50aa85acad434f47e5ed0b (patch)
treebee24b887c12d1abaa4d942525a6c1d304dd200d /external/tests/testmod.py
downloadbiomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.gz
biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.bz2
biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.xz
biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.zip
Initial import
Diffstat (limited to 'external/tests/testmod.py')
-rw-r--r--external/tests/testmod.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/external/tests/testmod.py b/external/tests/testmod.py
new file mode 100644
index 0000000..e833d21
--- /dev/null
+++ b/external/tests/testmod.py
@@ -0,0 +1,11 @@
+import subprocess
+
+def test():
+# proc = subprocess.Popen(['env'], stdout=subprocess.PIPE)
+ proc = subprocess.Popen(['nvidia-smi'], stdout=subprocess.PIPE)
+# proc = subprocess.Popen(['nvidia-smi', '-q', '-i', '0'], stdout=subprocess.PIPE)
+# proc = subprocess.Popen(['ls', '/usr/bin/'], stdout=subprocess.PIPE)
+# proc = subprocess.Popen('ls', stdout=subprocess.PIPE)
+ return proc.stdout.read()
+
+