From 70069e83c33651f6c62d8746123e4fa21827db9f Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Fri, 4 Nov 2022 15:28:16 +0200 Subject: [PATCH] more stable unittest --- srcxray.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srcxray.py b/srcxray.py index 2416aed..10fa2ba 100755 --- a/srcxray.py +++ b/srcxray.py @@ -1401,10 +1401,10 @@ class _unittest_autotest(unittest.TestCase): r'.*prepare_namespace.*') self.assertEqual('initrd_load: prepare_namespace', popen('srcxray.py referrers_dep nfs_root_data')[-1]) - self.assertEqual('calibrate_delay_converge: __delay', - popen('srcxray.py call_dep start_kernel')[-2]) - self.assertEqual('\trest_init ⋮', popen( - 'srcxray.py call_tree start_kernel')[-1]) + self.assertTrue('parse_early_options: parse_args' in + popen('srcxray.py call_dep start_kernel')) + self.assertTrue('\tsched_init ⋮' in popen( + 'srcxray.py call_tree start_kernel')) os.chdir('..') self.assertGreater(syscalls().number_of_edges(), 400) # digraph_print: