Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ abstract class FsHistoryProviderSuite extends SparkFunSuite with Matchers with P
SparkListenerApplicationEnd(2L)
)
logFile2.setReadable(false, false)
// setReadable(false) is a no-op for root users since they bypass file
// permission checks. Skip the test in that case.
assume(!logFile2.canRead, "Test requires the file to be unreadable; " +
"skipping when running as root.")

updateAndCheck(provider) { list =>
list.size should be (1)
Expand Down