Skip to content

Commit

Permalink
(test suite): Add mailman bin dir to PATH for some mailman tools
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 21, 2017
1 parent 4813904 commit 5eee6c5
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/completion/change_pw.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions change_pw
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 2 additions & 0 deletions test/completion/cleanarch.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions cleanarch
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 2 additions & 0 deletions test/completion/dumpdb.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions dumpdb
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 2 additions & 0 deletions test/completion/genaliases.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions genaliases
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 2 additions & 0 deletions test/completion/inject.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions inject
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 2 additions & 0 deletions test/completion/list_owners.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions list_owners
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 2 additions & 0 deletions test/completion/mailmanctl.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions mailmanctl
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 2 additions & 0 deletions test/completion/qrunner.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions qrunner
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 2 additions & 0 deletions test/completion/unshunt.exp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert_bash_exec {OLDPATH="$PATH"; PATH="$PATH:/usr/lib/mailman/bin"}
assert_source_completions unshunt
assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
2 changes: 1 addition & 1 deletion test/lib/completions/unshunt.exp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ proc teardown {} {
setup


assert_complete_any "unshunt -"
assert_complete_any "unshunt --"


sync_after_int
Expand Down

0 comments on commit 5eee6c5

Please sign in to comment.