Skip to content

Commit 54bf2e7

Browse files
committed
Test that set -e hasn't leaked into the main shell
1 parent a576055 commit 54bf2e7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tests/venv/start/postBuild/README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ postBuild and start
33

44
This test checks that we can use a postBuild and start script
55
at the same time.
6+
7+
It also checks that exit on error (set -e) has not leaked into the main shell.

tests/venv/start/postBuild/verify

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#!/bin/bash
1+
#!/bin/bash -il
2+
# Run this as an interactive login shell so that the conda profile is sourced
3+
4+
# Test that `set -e` isn't incorrectly set in a profile
5+
false
6+
27
set -euo pipefail
38
grep 'Done!' $HOME/postbuild.txt
49
# set value of TEST_START_VAR to empty string when it is not defined

0 commit comments

Comments
 (0)