aboutsummaryrefslogtreecommitdiffstats
path: root/tests/core/managers
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-05-17 23:15:36 +0200
committerGitHub <noreply@github.com>2022-05-17 23:15:36 +0200
commit0e90f04651388df2477400b4b63e5443fcda43af (patch)
tree82626e8193cdbf9406176fa6a7ff85f565698eb7 /tests/core/managers
parentfix(omnisharp): remove invalid equality check (diff)
downloadmason-0e90f04651388df2477400b4b63e5443fcda43af.tar
mason-0e90f04651388df2477400b4b63e5443fcda43af.tar.gz
mason-0e90f04651388df2477400b4b63e5443fcda43af.tar.bz2
mason-0e90f04651388df2477400b4b63e5443fcda43af.tar.lz
mason-0e90f04651388df2477400b4b63e5443fcda43af.tar.xz
mason-0e90f04651388df2477400b4b63e5443fcda43af.tar.zst
mason-0e90f04651388df2477400b4b63e5443fcda43af.zip
fix(spawn): avoid spawning commands that aren't on PATH (#706)
This is primarily done to avoid cluttering the log file with a bunch of ERROR entries. Also avoids unnecessary roundtrips to uv_spawn, I guess.
Diffstat (limited to 'tests/core/managers')
-rw-r--r--tests/core/managers/pip3_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/core/managers/pip3_spec.lua b/tests/core/managers/pip3_spec.lua
index adbda4ec..15a723d6 100644
--- a/tests/core/managers/pip3_spec.lua
+++ b/tests/core/managers/pip3_spec.lua
@@ -53,6 +53,7 @@ describe("pip3 manager", function()
"supporting-package2",
},
env = match.is_table(),
+ check_executable = false,
})
end)
)
@@ -113,6 +114,7 @@ describe("pip3 manager", function()
match.tbl_containing { "--proxy", "http://localhost:8080" },
match.tbl_containing { "package" },
env = match.is_table(),
+ check_executable = false,
})
end)
)
@@ -170,6 +172,7 @@ describe("pip3 version check", function()
"--format=json",
cwd = "/tmp/install/dir",
env = match.table(),
+ check_executable = false,
})
assert.is_true(result:is_success())
assert.equals("1.3.0", result:get_or_nil())
@@ -208,6 +211,7 @@ describe("pip3 version check", function()
"--format=json",
cwd = "/tmp/install/dir",
env = match.table(),
+ check_executable = false,
})
assert.is_true(result:is_success())
assert.same({