Skip to content

Commit 6a454ea

Browse files
author
Marcelo Vanzin
committed
Use constants for PWD in test.
1 parent 6dd5943 commit 6a454ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yarn/common/src/test/scala/org/apache/spark/deploy/yarn/ClientBaseSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ class ClientBaseSuite extends FunSuite with Matchers {
9898
cp should not contain (uri.getPath())
9999
}
100100
})
101-
cp should contain (s"$$PWD")
102-
cp should contain (s"$$PWD${File.separator}*")
101+
cp should contain (Environment.PWD.$())
102+
cp should contain (s"${Environment.PWD.$()}${File.separator}*")
103103
cp should not contain (ClientBase.SPARK_JAR)
104104
cp should not contain (ClientBase.APP_JAR)
105105
}

0 commit comments

Comments
 (0)