From e7c15a43d68733a5b3b5a0c61274096a19248e2c Mon Sep 17 00:00:00 2001 From: "Allen, Timothy" Date: Mon, 3 Apr 2023 10:47:19 -0400 Subject: [PATCH] Update tests and add a post-activation script check. --- pyro_test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyro_test.sh b/pyro_test.sh index 9369dd2..178dab6 100644 --- a/pyro_test.sh +++ b/pyro_test.sh @@ -8,13 +8,20 @@ TEST_VENV_DIR="$DIR/$TEST_VENV_NAME" echo "Starting tests with test venv '$TEST_VENV_NAME'..." # Test venv creation -VENV_DIR=$TEST_VENV_DIR pyro $TEST_VENV_NAME > /dev/null +VENV_DIR=$TEST_VENV_DIR pyro $TEST_VENV_NAME -c > /dev/null if [ -d "$TEST_VENV_DIR" ]; then echo "Testing venv creation... passed." else echo "Testing venv creation FAILED." fi +# Test default post activation hook +if grep -q "# Commands to be run after" "${TEST_VENV_DIR}/post_activate.sh"; then + echo "Testing post activation default script... passed." +else + echo "Testing post activation default script FAILED." +fi + # Test venv deletion pyro $TEST_VENV_NAME --delete > /dev/null if [ ! -d "$TEST_VENV_DIR" ]; then