mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-01 18:50:41 +03:00
test: Print a heartbeat file (every 20s) in the runner.
This commit is contained in:
parent
e8cc9254e0
commit
3fbea6029d
@ -188,6 +188,15 @@ struct TestCase {
|
||||
|
||||
io.sync();
|
||||
|
||||
/* heartbeat */
|
||||
if ( time( 0 ) % 20 == 0 ) {
|
||||
std::string stampfile( options.outdir + "/timestamp" );
|
||||
std::ofstream stamp( stampfile.c_str() );
|
||||
stamp << time( 0 );
|
||||
stamp.close();
|
||||
fsync_name( stampfile );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user