File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,13 +233,22 @@ def get_cache_contents():
233233
234234 return_code_1 , stdout_1 , stderr_1 = run_cppcheck ()
235235
236- assert return_code == return_code_1 , 'exitcode different with cached results'
237- assert stdout == stdout_1 , 'stdout different with cached results'
238- assert stderr == stderr_1 , 'stderr different with cached results'
236+ assert return_code == return_code_1
237+ print (stdout )
238+ print (stdout_1 )
239+ stdout_lines = stdout .splitlines ()
240+ # strip some common output only seen during analysis
241+ stdout_lines = [entry for entry in stdout_lines if not entry .startswith ('Processing rule: ' )]
242+ stdout_lines = [entry for entry in stdout_lines if not entry .startswith ('progress: ' )]
243+ assert stdout_lines == stdout_1 .splitlines ()
244+ print (stderr )
245+ print (stderr_1 )
246+ assert stderr == stderr_1
247+ #register_assert_rewrite
239248
240249 cache_content_1 = get_cache_contents ()
241250
242- assert cache_content == cache_content_1 , 'cache contents changed in-between runs'
251+ assert cache_content == cache_content_1
243252
244253 if builddir_tmp :
245254 builddir_tmp .cleanup ()
You can’t perform that action at this time.
0 commit comments