@@ -9,7 +9,7 @@ import utest._
99import scala .collection .mutable
1010
1111object SubprocessTests extends TestSuite {
12- val scriptFolder = pwd / " os/test/resources/ test"
12+ val scriptFolder = os. Path (sys.env( " OS_TEST_RESOURCE_FOLDER " )) / " test"
1313
1414 val lsCmd = if (scala.util.Properties .isWin) " dir" else " ls"
1515
@@ -38,6 +38,8 @@ object SubprocessTests extends TestSuite {
3838 }
3939 }
4040 test(" chained" ) {
41+ proc(" git" , " init" ).call()
42+ os.write.over(os.pwd / " Readme.adoc" , " hello" )
4143 assert(
4244 proc(" git" , " init" ).call().out.text().contains(" Reinitialized existing Git repository" ),
4345 proc(" git" , " init" ).call().out.text().contains(" Reinitialized existing Git repository" ),
@@ -46,6 +48,8 @@ object SubprocessTests extends TestSuite {
4648 }
4749 test(" basicList" ) {
4850 val files = List (" Readme.adoc" , " build.sc" )
51+ os.write.over(os.pwd / " Readme.adoc" , " hello" )
52+ os.write.over(os.pwd / " build.sc" , " world" )
4953 val output = TestUtil .proc(lsCmd, files).call().out.text()
5054 assert(files.forall(output.contains))
5155 }
@@ -193,7 +197,7 @@ object SubprocessTests extends TestSuite {
193197 }
194198 test(" jarTf" ) {
195199 // This was the original repro for the multi-chunk concurrency bugs
196- val jarFile = os.pwd / " os/test/resources/ misc/out.jar"
200+ val jarFile = os.Path (sys.env( " OS_TEST_RESOURCE_FOLDER " )) / " misc/out.jar"
197201 assert(TestUtil .eqIgnoreNewlineStyle(
198202 os.proc(" jar" , " -tf" , jarFile).call().out.text(),
199203 """ META-INF/MANIFEST.MF
0 commit comments