changeset 45634:ede4a1bf14bd

test: try to unflaky test-profile.t That test rely on timing measurement, because it is about timing measurement. We try to filter out the most common source of flakyness (slow disk stating)
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Oct 2020 10:29:22 +0200
parents 588068d5f2da
children 7d0e54056586
files tests/test-profile.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-profile.t	Fri Oct 02 18:40:39 2020 +0530
+++ b/tests/test-profile.t	Fri Oct 02 10:29:22 2020 +0200
@@ -87,7 +87,7 @@
 Various statprof formatters work
 
   $ hg --profile --config profiling.statformat=byline sleep 2>../out || cat ../out
-  $ head -n 3 ../out
+  $ grep -v _path_stat ../out | head -n 3
     %   cumulative      self          
    time    seconds   seconds  name    
   * sleepext.py:*:sleep (glob)