Add utility shell script to launch pytest under a venv
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 31 Oct 2017 19:39:52 +0000 (15:39 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 31 Oct 2017 19:39:52 +0000 (15:39 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
lttng_ivc/run_as_sudo.sh [new file with mode: 0755]

diff --git a/lttng_ivc/run_as_sudo.sh b/lttng_ivc/run_as_sudo.sh
new file mode 100755 (executable)
index 0000000..3788438
--- /dev/null
@@ -0,0 +1,9 @@
+venv_path=$(dirname "$0")/../.venv/bin/activate
+
+. $venv_path
+
+$@
+
+which python
+
+
This page took 0.023941 seconds and 5 git commands to generate.