diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-03 13:37:44 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-03 13:57:08 +0100 |
commit | ad7c518e45221533e2094acb20fea6ade477da75 (patch) | |
tree | 64cb8aac4f2bbc862a5f128b1fabcc1c0d32cc97 /nixos/lib | |
parent | b0c23548095f464fbb4bae866300c1446e9720e2 (diff) |
Sync /tmp/xchg to ensure that the coverage data is flushed
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/test-driver/test-driver.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/lib/test-driver/test-driver.pl b/nixos/lib/test-driver/test-driver.pl index c6a707cdf6b9..31f3281cefe0 100644 --- a/nixos/lib/test-driver/test-driver.pl +++ b/nixos/lib/test-driver/test-driver.pl @@ -144,6 +144,13 @@ sub runTests { } }); + $log->nest("syncing", sub { + foreach my $vm (values %vms) { + next unless $vm->isUp(); + $vm->execute("sync /tmp/xchg"); + } + }); + if ($nrTests != 0) { $log->log("$nrSucceeded out of $nrTests tests succeeded", ($nrSucceeded < $nrTests ? { error => 1 } : { })); |