Skip to content

Commit

Permalink
Merge pull request #410 from KasperskyLab/issue-407/Fix_allure_not_re…
Browse files Browse the repository at this point in the history
…cording_video

#407: Fix folder was created instead of video file
  • Loading branch information
Nikitae57 authored Nov 7, 2022
2 parents fa3131b + 7b99c0c commit 65c5f15
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class DefaultResourceFilesProvider(
tag,
FileExtension.MP4.toString()
)
return resourcesDirsProvider.provide(
resourcesRootDirsProvider.videoRootDir,
subDir
).resolve(resFileName).createDirIfNeeded().createFileIfNeeded()
val resourceDir = resourcesDirsProvider.provide(resourcesRootDirsProvider.videoRootDir, subDir)
return resourceDir.createDirIfNeeded()
.resolve(resFileName)
.createFileIfNeeded()
}

override fun provideViewHierarchyFile(tag: String, subDir: String?): File {
Expand Down

0 comments on commit 65c5f15

Please sign in to comment.