From 042c43734da663fc9da9f85e20b10c4ca9d57375 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 31 Oct 2017 15:39:52 -0400 Subject: [PATCH] Add utility shell script to launch pytest under a venv Signed-off-by: Jonathan Rajotte --- lttng_ivc/run_as_sudo.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 lttng_ivc/run_as_sudo.sh diff --git a/lttng_ivc/run_as_sudo.sh b/lttng_ivc/run_as_sudo.sh new file mode 100755 index 0000000..3788438 --- /dev/null +++ b/lttng_ivc/run_as_sudo.sh @@ -0,0 +1,9 @@ +venv_path=$(dirname "$0")/../.venv/bin/activate + +. $venv_path + +$@ + +which python + + -- 2.34.1