IOR: print overwrite check only if a write operation is requested.

master
Julian M. Kunkel 2020-12-03 20:54:51 +00:00
parent a8ab766483
commit 073da08292
1 changed files with 1 additions and 1 deletions

View File

@ -1292,7 +1292,7 @@ static void TestIoSys(IOR_test_t *test)
uint64_t params_saved_wearout = params->stoneWallingWearOutIterations;
/* Check if the file exists and warn users */
if( params->hints.filePerProc || rank == 0){
if((params->writeFile || params->checkWrite) && (params->hints.filePerProc || rank == 0)){
struct stat sb;
GetTestFileName(testFileName, params);
int ret = backend->stat(testFileName, & sb, params->backend_options);