diff options
author | Mark Felder <feld@feld.me> | 2024-08-13 15:34:56 -0400 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-08-13 15:49:04 -0400 |
commit | b281ad06de2de331450a5e319e3ba497071d4197 (patch) | |
tree | 5910ceef202b1590c5421c37af87ccc2f304f046 /lib | |
parent | 648e94b369c4a356feda22c0f8ee8a01f7d798f8 (diff) | |
download | pleroma-b281ad06de2de331450a5e319e3ba497071d4197.tar.gz pleroma-b281ad06de2de331450a5e319e3ba497071d4197.zip |
Revert "Custom mix task to retry failed tests once in CI pipeline"
This reverts commit ed2976b237b53a524247d564691e0a12d3231d68.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mix/tasks/pleroma/test_runner.ex | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/mix/tasks/pleroma/test_runner.ex b/lib/mix/tasks/pleroma/test_runner.ex deleted file mode 100644 index 69fefb001..000000000 --- a/lib/mix/tasks/pleroma/test_runner.ex +++ /dev/null @@ -1,25 +0,0 @@ -defmodule Mix.Tasks.Pleroma.TestRunner do - @shortdoc "Retries tests once if they fail" - - use Mix.Task - - def run(args \\ []) do - case System.cmd("mix", ["test"] ++ args, into: IO.stream(:stdio, :line)) do - {_, 0} -> - :ok - - _ -> - retry(args) - end - end - - def retry(args) do - case System.cmd("mix", ["test", "--failed"] ++ args, into: IO.stream(:stdio, :line)) do - {_, 0} -> - :ok - - _ -> - exit(1) - end - end -end |