yatest.common.output_ram_drive_path() should return None if no ram drive was provided
issue:DEVTOOLS-6543
@@ -114,9 +114,10 @@ def ram_drive_path(path=None):
def output_ram_drive_path(path=None):
"""
Returns path inside ram drive directory which will be saved in the testing_out_stuff directory after testing.
- If no ram drive was provided by environment - returns path inside testing_out_stuff directory.
+ Returns None if no ram drive was provided by environment.
:param path: path relative to the output ram drive directory
"""
+ if 'YA_TEST_OUTPUT_RAM_DRIVE_PATH' in os.environ:
return _join_path(os.environ['YA_TEST_OUTPUT_RAM_DRIVE_PATH'], path)
