diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-11-16 11:28:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 11:28:40 +0100 |
commit | 62960f32915909a5104f2ca3a32b25fb3cfd34c7 (patch) | |
tree | d2ce9efd43495a1461065934e1cc739c72b3768a /tests | |
parent | 4bf70b74a78bf10f3f19ed122ae7377963e14003 (diff) | |
parent | 60dea270d0bc430930f5560ebac71a2dc0ab2b21 (diff) |
Merge pull request #7134 from yorickvP/disable-dbg-on-complete
Temporarily disable the debugger during completion evaluation
Diffstat (limited to 'tests')
-rw-r--r-- | tests/completions.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/completions.sh b/tests/completions.sh index 522aa1c86..19dc61098 100644 --- a/tests/completions.sh +++ b/tests/completions.sh @@ -28,6 +28,10 @@ cat <<EOF > bar/flake.nix }; } EOF +mkdir -p err +cat <<EOF > err/flake.nix +throw "error" +EOF # Test the completion of a subcommand [[ "$(NIX_GET_COMPLETIONS=1 nix buil)" == $'normal\nbuild\t' ]] @@ -60,3 +64,5 @@ NIX_GET_COMPLETIONS=3 nix build --option allow-import-from | grep -- "allow-impo # Attr path completions [[ "$(NIX_GET_COMPLETIONS=2 nix eval ./foo\#sam)" == $'attrs\n./foo#sampleOutput\t' ]] [[ "$(NIX_GET_COMPLETIONS=4 nix eval --file ./foo/flake.nix outp)" == $'attrs\noutputs\t' ]] +[[ "$(NIX_GET_COMPLETIONS=4 nix eval --file ./err/flake.nix outp 2>&1)" == $'attrs' ]] +[[ "$(NIX_GET_COMPLETIONS=2 nix eval ./err\# 2>&1)" == $'attrs' ]] |