Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6114893ybc; Wed, 27 Nov 2019 15:20:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxQxU2TshVUMtxBdWk1wPOvkGx1u7G3J3nrRWZe6cfo7DD3go1Sla5ZAFxRaCfw1+yMP/lt X-Received: by 2002:a17:906:6702:: with SMTP id a2mr36743538ejp.186.1574896852195; Wed, 27 Nov 2019 15:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574896852; cv=none; d=google.com; s=arc-20160816; b=lCNX55OA6fMcFvLr/1Kde3MuuiqOL/kBNGyg+6n9o170iHybL5oa0HICayOzAV2jLw 4d9B1uAOGruiNC19BEcnbDD7TqTBnA2osj7HOtx0nPotEmGInt3+GZ9v8Bntl93gLlYi nKgL5NrMYT/7ZeRiHGKFLAOuPdkbwVKB8UbViEK5wyGp9EKsGs35ur1240yhmG8R7+fj i859nZgnuIeixbq4lnqofNA3T9IrVhOdwk1KswpxwT51lek3t17yRDTxs2fkYIPNxLf5 FzldZv9XGulScc1wWU6Kt5O5KvOVHggXoQu22b+z/Ywn37GOixVVdF8DFglhP8MbTnpQ A5nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=3DvG1Qi/9kLi2+lMfxuoRgIDiLfz9oW0Dvr00Re3MJI=; b=dqCAm3sSlyX2iz8ejNCqTxRPqG4AoOup9t/vP9tnIRTDLDht/Gt7YpiCpmyEFtLw+B JJrW19zOii0XcSENxfpWspUTcZ1BFJ4HAiwXZquwRzsO+NZc4cr5w5oiQtq2flf3wGbl KVr8vMfmuTEL1GEkQeTX9kuun+Sw8yR/3CZ0PCYpWqV4T7Curozeo2nhP9fWWNnD760B PjORRSzdkXTwrTxwj0W3zrbqRYa252EPinXndiat3/xjCq07dmGLze3H4sAD3qk9JMYH fmqWTE8sf6iv/wy+5Z19JjwS29+LYOAE1iumCz8/23HPT19rKhC4gxYHwC8CNzxzQZ8G 8vBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=G08yPCm7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q27si10390736ejr.143.2019.11.27.15.20.28; Wed, 27 Nov 2019 15:20:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=G08yPCm7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727104AbfK0XTc (ORCPT + 99 others); Wed, 27 Nov 2019 18:19:32 -0500 Received: from mail-pg1-f202.google.com ([209.85.215.202]:38272 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726947AbfK0XTb (ORCPT ); Wed, 27 Nov 2019 18:19:31 -0500 Received: by mail-pg1-f202.google.com with SMTP id l13so916811pgt.5 for ; Wed, 27 Nov 2019 15:19:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=3DvG1Qi/9kLi2+lMfxuoRgIDiLfz9oW0Dvr00Re3MJI=; b=G08yPCm7fV3eNIe0YnB6BkhBTG7Tpw/+wTOYlOFUt7oWMaoUlKrEP1phO2WI9m+MG7 5LSEO7HQ1GdibWwnc9GggdXa2Jgy3g0ESsAzVVjyRG7fvm3c602985pTOTAE/RWW5zZs 74Np5nhm9WcJltyOS2ROsj4A1/JnF7U3FXuj7yPLwAtajRwV8s0Cp/GEeCdbJWSYDueH YK9OC4gr/M5Ug5o6CxK7zAVD+Rk5BPFcfKmr07k0F2ZhWc2OejnKhADzy/Hr7hY6hKq4 ouCddGLaKbRM0lvWY9W5Qq3WjqFdAgKwwzVWTyzLhYpxXVpSeuPC1auGokoZKKCwgydY 43dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=3DvG1Qi/9kLi2+lMfxuoRgIDiLfz9oW0Dvr00Re3MJI=; b=OPcCKOkEbsAP4xFy1EuTiFsaua5SydBMYnnj5yHXvyUgZkW7+RftWDvz44Yc/CNTs+ 6NGlXYFu/4JAVA+S5A4tL03zzO9MtkIHzVbk8eVFtv9GPoDF+6YH78tZbeKC5G+Fu2hX YbXe23NqN2Yy2OPJY90XfSeRMUWnWmS3tmPlwmatJ3N+3yxy9ynrMHt5BqnxBnb+y5O9 z6sGzF4EaYGCWwmk7fqnmByoCEBh4+nfiW8OVB09XamWJlXL3LSCaq73rV+B3iOoPqPT c01LehVYka8rdQ3Mlw/Ua7XKtu6cXqqp9vzWP1ln3phFhYbQgHytsIcNKr4DJRsxbO2o KgtQ== X-Gm-Message-State: APjAAAVn1oewONu2lSIu9fAoJh7dvbgH/VtUCLCSPCr8ip1ihIzRrq5O rPVeE3WBg2jFIngLFMxLavjSooMny23zemNM X-Received: by 2002:a63:565c:: with SMTP id g28mr7657844pgm.409.1574896770856; Wed, 27 Nov 2019 15:19:30 -0800 (PST) Date: Wed, 27 Nov 2019 15:19:26 -0800 Message-Id: <20191127231926.162437-1-heidifahim@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog Subject: [PATCH] kunit: testing kunit: Bug fix in test_run_timeout function From: Heidi Fahim To: brendanhiggins@google.com, davidgow@google.com, shuah@kernel.org Cc: sj38.park@gmail.com, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, Heidi Fahim Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Assert in test_run_timeout was not updated with the build_dir argument and caused the following error: AssertionError: Expected call: run_kernel(timeout=3453) Actual call: run_kernel(build_dir=None, timeout=3453) Needed to update kunit_tool_test to reflect this fix https://lkml.org/lkml/2019/9/6/3 Signed-off-by: Heidi Fahim Change-Id: I6f161c72c6a5f071a4dc31582ba08b91974502ce --- tools/testing/kunit/kunit_tool_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/kunit/kunit_tool_test.py b/tools/testing/kunit/kunit_tool_test.py index 4a12baa0cd4e..a2a8ea6beae3 100755 --- a/tools/testing/kunit/kunit_tool_test.py +++ b/tools/testing/kunit/kunit_tool_test.py @@ -199,7 +199,7 @@ class KUnitMainTest(unittest.TestCase): timeout = 3453 kunit.main(['run', '--timeout', str(timeout)], self.linux_source_mock) assert self.linux_source_mock.build_reconfig.call_count == 1 - self.linux_source_mock.run_kernel.assert_called_once_with(timeout=timeout) + self.linux_source_mock.run_kernel.assert_called_once_with(build_dir=None, timeout=timeout) self.print_mock.assert_any_call(StrContains('Testing complete.')) if __name__ == '__main__': -- 2.24.0.432.g9d3f5f5b63-goog