Skip to content

Partest should fail nice on empty dir #8000

@scabug

Description

@scabug

On an empty dir, instead of a nice error or ignoring it,

java.lang.RuntimeException: Error running /home/apm/clones/scala/test/files/pos/AAAA
	at scala.tools.partest.nest.SuiteRunner.liftedTree1$1(Runner.scala:773)
	at scala.tools.partest.nest.SuiteRunner.runTest(Runner.scala:771)
	at scala.tools.partest.nest.SuiteRunner$$anonfun$19$$anonfun$apply$6.apply(Runner.scala:786)
	at scala.tools.partest.nest.SuiteRunner$$anonfun$19$$anonfun$apply$6.apply(Runner.scala:786)
	at scala.tools.partest.package$$anon$2.call(package.scala:133)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.UnsupportedOperationException: tail of empty list

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions