mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/elixir: move from testing
This commit is contained in:
parent
db593b70af
commit
f3890defb7
@ -1,20 +0,0 @@
|
||||
--- ./lib/elixir/test/elixir/system_test.exs.orig
|
||||
+++ ./lib/elixir/test/elixir/system_test.exs
|
||||
@@ -63,7 +63,7 @@ defmodule SystemTest do
|
||||
assert {"hello\n", 0} = System.cmd "echo", ["hello"]
|
||||
|
||||
opts = [into: [], cd: System.cwd!, env: %{"foo" => "bar"},
|
||||
- arg0: "hecho", stderr_to_stdout: true, parallelism: true]
|
||||
+ arg0: "echo", stderr_to_stdout: true, parallelism: true]
|
||||
assert {["hello\n"], 0} = System.cmd "echo", ["hello"], opts
|
||||
|
||||
with_tmp_dir(fn dir ->
|
||||
@@ -73,7 +73,7 @@ defmodule SystemTest do
|
||||
|
||||
File.cd!(dir)
|
||||
assert :enoent = catch_error(System.cmd("echo2", ["hello"]))
|
||||
- assert {"hello\n", 0} = System.cmd(Path.join([System.cwd, "echo2"]), ["hello"])
|
||||
+ assert {"hello\n", 0} = System.cmd(Path.join([System.cwd, "echo2"]), ["hello"], [{:arg0, "echo"}])
|
||||
end)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user