This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/framework: Add GetTestFile (#2136)
We might be interested in near future to save test results, data or logs on disk. This commit introduces a helper for tests to prefix filenames and create test folder upon use. Added a random uin64 identifier for a test, which will be used to identify a certain test run. Note these are random, but not unique. GetTestFile is fed with a filename and returns a path to a file inside test folder. If a folder for current test does not exist, it is created in the process. Signed-off-by: Eduard Serra <eduser25@gmail.com>
- Loading branch information
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters