stevedlawrence commented on code in PR #1333:
URL: https://github.com/apache/daffodil/pull/1333#discussion_r1797339519
##########
daffodil-test-integration/src/test/scala/org/apache/daffodil/cliTest/TestCLIUdfs.scala:
##########
@@ -64,8 +64,9 @@ class TestCLIUdfs {
val schema = path(
"daffodil-udf/src/test/resources/org/apache/daffodil/udf/genericUdfSchema.xsd"
)
+ val classpath = udfClasspath()
- runCLI(args"-v parse -s $schema -r user_func1") { cli =>
+ runCLI(args"-v parse -s $schema -r user_func1", classpath) { cli =>
Review Comment:
Ah, and that's the problem, this test doesn't fork so it will use the normal
classpath. If you specify classpath then it will fork, which is way that fixed
it. Probably all the tests in here want to either specify `fork = true` or
ensure that something is defined that causes forking, like a non-empty
classpath. I think in this test case we explicitly don't want a classpath to
ensure no UDFs are loaded, so we should set fork = `true`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]