Skip to content

Commit e7c15a4

Browse files
committed
Update tests and add a post-activation script check.
1 parent 5473df2 commit e7c15a4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pyro_test.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ TEST_VENV_DIR="$DIR/$TEST_VENV_NAME"
88
echo "Starting tests with test venv '$TEST_VENV_NAME'..."
99

1010
# Test venv creation
11-
VENV_DIR=$TEST_VENV_DIR pyro $TEST_VENV_NAME > /dev/null
11+
VENV_DIR=$TEST_VENV_DIR pyro $TEST_VENV_NAME -c > /dev/null
1212
if [ -d "$TEST_VENV_DIR" ]; then
1313
echo "Testing venv creation... passed."
1414
else
1515
echo "Testing venv creation FAILED."
1616
fi
1717

18+
# Test default post activation hook
19+
if grep -q "# Commands to be run after" "${TEST_VENV_DIR}/post_activate.sh"; then
20+
echo "Testing post activation default script... passed."
21+
else
22+
echo "Testing post activation default script FAILED."
23+
fi
24+
1825
# Test venv deletion
1926
pyro $TEST_VENV_NAME --delete > /dev/null
2027
if [ ! -d "$TEST_VENV_DIR" ]; then

0 commit comments

Comments
 (0)