@@ -38,7 +38,7 @@ object CommandSpec extends ZIOProcessBaseSpec with SpecProperties {
3838 val zio = Command (" bash" , " -c" , " echo -n \" var = $VAR\" " ).env(Map (" VAR" -> " value" )).string
3939
4040 assertZIO(zio)(equalTo(" var = value" ))
41- },
41+ } @@ TestAspect .flaky ,
4242 test(" accept streaming stdin" ) {
4343 val stream = Command (" echo" , " -n" , " a" , " b" , " c" ).stream
4444 val zio = Command (" cat" ).stdin(ProcessInput .fromStream(stream, flushChunksEagerly = false )).string
@@ -49,20 +49,20 @@ object CommandSpec extends ZIOProcessBaseSpec with SpecProperties {
4949 val zio = Command (" cat" ).stdin(ProcessInput .fromUTF8String(" piped in" )).string
5050
5151 assertZIO(zio)(equalTo(" piped in" ))
52- },
52+ } @@ TestAspect .flaky ,
5353 test(" accept file stdin" ) {
5454 for {
5555 lines <- Command (" cat" ).stdin(ProcessInput .fromFile(mkFile(s " ${dir}src/test/bash/echo-repeat.sh " ))).lines
5656 } yield assertTrue(lines.head == " #!/bin/bash" )
57- },
57+ } @@ TestAspect .exceptNative ,
5858 test(" support different encodings" ) {
5959 val zio =
6060 Command (" cat" )
6161 .stdin(ProcessInput .fromString(" piped in" , StandardCharsets .UTF_16 ))
6262 .string(StandardCharsets .UTF_16 )
6363
6464 assertZIO(zio)(equalTo(" piped in" ))
65- },
65+ } @@ TestAspect .exceptNative @@ TestAspect .exceptJS ,
6666 test(" set workingDirectory" ) {
6767 val zio = Command (" ls" ).workingDirectory(mkFile(s " ${dir}src/test/bash " )).lines
6868
@@ -75,7 +75,7 @@ object CommandSpec extends ZIOProcessBaseSpec with SpecProperties {
7575 }
7676
7777 assertZIO(zio)(equalTo(" test" ))
78- },
78+ } @@ TestAspect .exceptJS ,
7979 test(" interrupt a process manually" ) {
8080 val zio = for {
8181 fiber <- Command (" sleep" , " 20" ).exitCode.fork
@@ -104,17 +104,17 @@ object CommandSpec extends ZIOProcessBaseSpec with SpecProperties {
104104 } yield (stdout, stderr)
105105
106106 assertZIO(zio)(equalTo((" stdout1\n stdout2\n " , " stderr1\n stderr2\n " )))
107- },
107+ } @@ TestAspect .exceptJS ,
108108 test(" return non-zero exit code in success channel" ) {
109109 val zio = Command (" ls" , " --non-existent-flag" ).exitCode
110110
111111 assertZIO(zio)(not(equalTo(ExitCode .success)))
112- },
112+ } @@ TestAspect .exceptJS ,
113113 test(" absolve non-zero exit code" ) {
114114 val zio = Command (" ls" , " --non-existent-flag" ).successfulExitCode
115115
116116 assertZIO(zio.exit)(fails(isSubtype[CommandError .NonZeroErrorCode ](anything)))
117- },
117+ } @@ TestAspect .flaky ,
118118 test(" permission denied is a typed error" ) {
119119 val zio = Command (s " ${dir}src/test/bash/no-permissions.sh " ).string
120120
@@ -149,7 +149,7 @@ object CommandSpec extends ZIOProcessBaseSpec with SpecProperties {
149149 lines == Chunk (uniqueId, uniqueId),
150150 grepOutput.forall(! _.contains(uniqueId))
151151 )
152- },
152+ } @@ TestAspect .exceptNative ,
153153 test(" connect to a repl-like process and flush the chunks eagerly and get responses right away" ) {
154154 for {
155155 commandQueue <- Queue .unbounded[Chunk [Byte ]]
0 commit comments