Skip to content

Commit 169f66a

Browse files
committed
Updated path to resources in tests
1 parent ec303a9 commit 169f66a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

os/test/src/FilesystemMetadataTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object FilesystemMetadataTests extends TestSuite {
1010

1111
def tests = Tests {
1212
// restricted directory
13-
val rd = os.pwd / "os/test/resources/restricted"
13+
val rd = os.Path(sys.env("OS_TEST_RESOURCE_FOLDER")) / "restricted"
1414

1515
test("stat") {
1616
test - prep { wd =>

os/test/src/FilesystemPermissionsTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import utest._
66
object FilesystemPermissionsTests extends TestSuite {
77
def tests = Tests {
88
// restricted directory
9-
val rd = os.pwd / "os/test/resources/restricted"
9+
val rd = os.Path(sys.env("OS_TEST_RESOURCE_FOLDER")) / "restricted"
1010

1111
test("perms") {
1212
test - prep { wd =>

os/test/src/ManipulatingFilesFoldersTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import utest._
66
object ManipulatingFilesFoldersTests extends TestSuite {
77
def tests = Tests {
88
// restricted directory
9-
val rd = os.pwd / "os/test/resources/restricted"
9+
val rd = os.Path(sys.env("OS_TEST_RESOURCE_FOLDER")) / "restricted"
1010

1111
test("exists") {
1212
test - prep { wd =>

os/test/src/ReadingWritingTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import TestUtil._
44
object ReadingWritingTests extends TestSuite {
55
def tests = Tests {
66
// restricted directory
7-
val rd = os.pwd / "os/test/resources/restricted"
7+
val rd = os.Path(sys.env("OS_TEST_RESOURCE_FOLDER")) / "restricted"
88

99
test("read") {
1010
test - prep { wd =>

os/test/src/ZipOpTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ object ZipOpTests extends TestSuite {
1111

1212
def tests = Tests {
1313
// restricted directory
14-
val rd = os.pwd / "os/test/resources/restricted"
14+
val rd = os.Path(sys.env("OS_TEST_RESOURCE_FOLDER")) / "restricted"
1515

1616
test("checker") - prepChecker { wd =>
1717
intercept[WriteDenied] {

0 commit comments

Comments
 (0)