Skip to content

Commit b08a191

Browse files
committed
Fix issue with how arguments are passed to test Mix aliases
1 parent d01c6fb commit b08a191

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

mix.exs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ defmodule FunWithFlags.Mixfile do
152152
#
153153
defp run_tests__redis_pers__redis_pubsub(arg) do
154154
Mix.shell.cmd(
155-
"mix test --color --force --exclude phoenix_pubsub --exclude ecto_persistence #{arg}",
155+
"mix test --color --force --exclude phoenix_pubsub --exclude ecto_persistence #{Enum.join(arg, " ")}",
156156
env: [
157157
{"CACHE_ENABLED", "true"},
158158
]
@@ -164,7 +164,7 @@ defmodule FunWithFlags.Mixfile do
164164
#
165165
defp run_integration_tests__redis_pers__redis_pubsub__no_cache(arg) do
166166
Mix.shell.cmd(
167-
"mix test --color --force --only integration #{arg}",
167+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
168168
env: [
169169
{"CACHE_ENABLED", "false"},
170170
]
@@ -175,7 +175,7 @@ defmodule FunWithFlags.Mixfile do
175175
#
176176
defp run_tests__redis_pers__phoenix_pubsub(arg) do
177177
Mix.shell.cmd(
178-
"mix test --color --force --exclude redis_pubsub --exclude ecto_persistence #{arg}",
178+
"mix test --color --force --exclude redis_pubsub --exclude ecto_persistence #{Enum.join(arg, " ")}",
179179
env: [
180180
{"CACHE_ENABLED", "true"},
181181
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -188,7 +188,7 @@ defmodule FunWithFlags.Mixfile do
188188
#
189189
defp run_integration_tests__redis_pers__phoenix_pubsub__no_cache(arg) do
190190
Mix.shell.cmd(
191-
"mix test --color --force --only integration #{arg}",
191+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
192192
env: [
193193
{"CACHE_ENABLED", "false"},
194194
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -200,7 +200,7 @@ defmodule FunWithFlags.Mixfile do
200200
#
201201
defp run_tests__ecto_pers_postgres__phoenix_pubsub(arg) do
202202
Mix.shell.cmd(
203-
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{arg}",
203+
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{Enum.join(arg, " ")}",
204204
env: [
205205
{"CACHE_ENABLED", "true"},
206206
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -214,7 +214,7 @@ defmodule FunWithFlags.Mixfile do
214214
#
215215
defp run_tests__ecto_pers_mysql__phoenix_pubsub(arg) do
216216
Mix.shell.cmd(
217-
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{arg}",
217+
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{Enum.join(arg, " ")}",
218218
env: [
219219
{"CACHE_ENABLED", "true"},
220220
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -228,7 +228,7 @@ defmodule FunWithFlags.Mixfile do
228228
#
229229
defp run_tests__ecto_pers_sqlite__phoenix_pubsub(arg) do
230230
Mix.shell.cmd(
231-
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{arg}",
231+
"mix test --color --force --exclude redis_pubsub --exclude redis_persistence #{Enum.join(arg, " ")}",
232232
env: [
233233
{"CACHE_ENABLED", "true"},
234234
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -243,7 +243,7 @@ defmodule FunWithFlags.Mixfile do
243243
#
244244
defp run_integration_tests__ecto_pers_postgres__phoenix_pubsub__no_cache(arg) do
245245
Mix.shell.cmd(
246-
"mix test --color --force --only integration #{arg}",
246+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
247247
env: [
248248
{"CACHE_ENABLED", "false"},
249249
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -258,7 +258,7 @@ defmodule FunWithFlags.Mixfile do
258258
#
259259
defp run_integration_tests__ecto_pers_mysql__phoenix_pubsub__no_cache(arg) do
260260
Mix.shell.cmd(
261-
"mix test --color --force --only integration #{arg}",
261+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
262262
env: [
263263
{"CACHE_ENABLED", "false"},
264264
{"PUBSUB_BROKER", "phoenix_pubsub"},
@@ -273,7 +273,7 @@ defmodule FunWithFlags.Mixfile do
273273
#
274274
defp run_integration_tests__ecto_pers_sqlite__phoenix_pubsub__no_cache(arg) do
275275
Mix.shell.cmd(
276-
"mix test --color --force --only integration #{arg}",
276+
"mix test --color --force --only integration #{Enum.join(arg, " ")}",
277277
env: [
278278
{"CACHE_ENABLED", "false"},
279279
{"PUBSUB_BROKER", "phoenix_pubsub"},

0 commit comments

Comments
 (0)