Skip to content

Commit 85550e4

Browse files
committed
Updating deprecated System.cmd calls
1 parent ca71b84 commit 85550e4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/ex_doc/formatter/html_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule ExDoc.Formatter.HTMLTest do
88
:file.make_dir(output_dir)
99

1010
on_exit fn ->
11-
System.cmd("rm -rf #{output_dir}")
11+
System.cmd "rm", ["-rf", "#{output_dir}"]
1212
:file.set_cwd("..")
1313
end
1414

test/test_helper.exs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ ExUnit.start(exclude: exclude)
33

44
if Enum.empty? Path.wildcard("test/tmp/ebin/*.beam") do
55
IO.puts "Compiling fixtures..."
6-
IO.puts System.cmd "elixirc test/fixtures -o test/tmp/ebin"
6+
{result, _error_code} = System.cmd "elixirc", ["test/fixtures", "-o", "test/tmp/ebin"], stderr_to_stdout: true
7+
IO.puts result
78
end
89

9-
Code.prepend_path "test/tmp/ebin"
10+
Code.prepend_path "test/tmp/ebin"

0 commit comments

Comments
 (0)