aboutsummaryrefslogtreecommitdiff
path: root/tests/plugins.sh
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2021-01-28 09:37:43 -0500
committerShea Levy <shea@shealevy.com>2021-02-24 08:22:17 -0500
commit98d1b64400cc7b75216fc885859883c707c18bef (patch)
tree81b82449977fd5ef0b9c01b38c15666458d567a5 /tests/plugins.sh
parentec3497c1d63f4c0547d0402d92015f846f56aac7 (diff)
Initialize plugins after handling initial command line flags
This is technically a breaking change, since attempting to set plugin files after the first non-flag argument will now throw an error. This is acceptable given the relative lack of stability in a plugin interface and the need to tie the knot somewhere once plugins can actually define new subcommands.
Diffstat (limited to 'tests/plugins.sh')
-rw-r--r--tests/plugins.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/plugins.sh b/tests/plugins.sh
index 50bfaf7e9..e22bf4408 100644
--- a/tests/plugins.sh
+++ b/tests/plugins.sh
@@ -2,6 +2,6 @@ source common.sh
set -o pipefail
-res=$(nix eval --expr builtins.anotherNull --option setting-set true --option plugin-files $PWD/plugins/libplugintest*)
+res=$(nix --option setting-set true --option plugin-files $PWD/plugins/libplugintest* eval --expr builtins.anotherNull)
[ "$res"x = "nullx" ]