Commit 37b3af4
committed
core: Test that plugins don't run selves as plugin
Closes #132. Adds test cases missing from #131.
As demonstrated by the "plugin subcommand finds correct command in own
plugin" test case, not setting `_GO_SCRIPTS_DIR` correctly for a plugin
could've caused serious bugs:
- showstopper (best case): no other command script of that name exists
outside the plugin
- obscure (medium case): finding the wrong script could cause confusing
error messages when the interface between the caller and callee don't
match
- subtle (worst case): finding the wrong version of a script could
exhibit confusing behaviors that might only become apparent
after-the-fact1 parent 1fc08b1 commit 37b3af4
1 file changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
33 | 67 | | |
34 | 68 | | |
35 | 69 | | |
| |||
0 commit comments