Skip to content

Commit 72a6224

Browse files
committed
Attempt to redirect stdout/stderr to fix failing test.
1 parent a4b741b commit 72a6224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/environment.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ _common_setup
5858

5959
@test 'unset-bashrc entry' {
6060
run unset-bashrc 'MY_NEW_LINE'
61-
run bash -i -c "awk '/^MY_NEW_LINE$/' ~/.bashrc | grep ."
61+
run bash -c "awk '/^MY_NEW_LINE$/' ~/.bashrc | grep . |&"
6262
assert_failure
6363
}
6464

6565
@test 'unset-bashrc key-value' {
6666
run unset-bashrc 'MY_KEY' 'MY_VALUE'
67-
run bash -i -c "awk '/^export MY_KEY=MY_VALUE$/' ~/.bashrc | grep ."
67+
run bash -c "awk '/^export MY_KEY=MY_VALUE$/' ~/.bashrc | grep . |&"
6868
assert_failure
6969
}

0 commit comments

Comments
 (0)