Skip to content

Commit 525b51e

Browse files
committed
Fix UT
1 parent 70b69a5 commit 525b51e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/BaseScriptTransformationSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ abstract class BaseScriptTransformationSuite extends SparkPlanTest with SQLTestU
218218
ioschema = defaultIOSchema)
219219
SparkPlanTest.executePlan(plan, spark.sqlContext)
220220
}
221-
assert(e.getMessage.contains("Subprocess exited with status"))
221+
assert(e.getMessage.contains("No such file or directory"))
222222
assert(uncaughtExceptionHandler.exception.isEmpty)
223223
}
224224

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class HiveScriptTransformationSuite extends BaseScriptTransformationSuite with T
111111
ioschema = hiveIOSchema)
112112
SparkPlanTest.executePlan(plan, hiveContext)
113113
}
114-
assert(e.getMessage.contains("Subprocess exited with status"))
114+
assert(e.getMessage.contains("No such file or directory"))
115115
assert(uncaughtExceptionHandler.exception.isEmpty)
116116
}
117117

@@ -150,7 +150,7 @@ class HiveScriptTransformationSuite extends BaseScriptTransformationSuite with T
150150
ioschema = hiveIOSchema)
151151
SparkPlanTest.executePlan(plan, hiveContext)
152152
}
153-
assert(e.getMessage.contains("Subprocess exited with status"))
153+
assert(e.getMessage.contains("No such file or directory"))
154154
assert(uncaughtExceptionHandler.exception.isEmpty)
155155
}
156156

0 commit comments

Comments
 (0)