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