Received: by 10.213.65.68 with SMTP id h4csp3672107imn; Tue, 10 Apr 2018 02:49:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+AJuaW0sMeGMZ2ezIhPUYEBrRpLNcb+IubcAAVCawJLbZqyXOn+JeFHB6Cs6jNySvxHMy0 X-Received: by 2002:a17:902:624:: with SMTP id 33-v6mr8714841plg.361.1523353774403; Tue, 10 Apr 2018 02:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523353774; cv=none; d=google.com; s=arc-20160816; b=Ia896oDm7eLRnhiZiV+om8f+EhmmH0rI6eNRvShR1IqiZftU8rRvHqmtSYllEy3+BW 2bMpKh6mmE2sRKGzwsdNhSb+w6U9MxR04J+RaEVsRabBYuJklN+ERSdYc9nuRP/bGBIJ XJL7TfraneNXWyOq+22sdK32PKaXEbdRTEGHpzFTpR1bi4/J5wDYVYEDfAKvXG5iR1h4 eldYHTrVj3oY+Ib7eqWK5LWZw5LmrHuRIEl4dzGpP5Ob2tB64XacFSKMS9OWts6VutdF Jzd+wPdQyDIRWoxw2yoTOkxmozg47P5G23u1QA24YQ2+YyTmLQ9n+RNYSRVCiwo5ToA6 FcRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:arc-authentication-results; bh=T56J4vJuFd7gXRRaUmw73seQWF7s8or5RcZdMVqLTCA=; b=wKex2yUYTnKgA+XidkLtXWcyYUhxoMNCPMcmhPaqCwERsuREHT6KJDxQUitWLUHyLX mAixN3/CU7n4y2iVVd7UELyvehVYGi6hoziCh7WyA1Dy/5Cvm11L7qT43sdbpMLIL7Kc kEKOVa/TFGf6S8ZQ6tmUvkQQHcOtmimeNjxg+70W9Gpe0Xe+T5c03cpKtQLpRM0RYgzN ZiL1SbYeJS9pFEsIqcnFfBtg0kE0+L+DPQoAUD0+6lRLyX3bXMdztr4jic/QOfBVFLwr abyd0MQ+8AebQFZbTkH2ebvGXbRuAu4EwAyLFTpGYBZy82rf2IAoQ/frtUBSn85ltSSm qSYA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1-v6si2160121plb.101.2018.04.10.02.48.57; Tue, 10 Apr 2018 02:49:34 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752491AbeDJJp7 (ORCPT + 99 others); Tue, 10 Apr 2018 05:45:59 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:45948 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752057AbeDJJp5 (ORCPT ); Tue, 10 Apr 2018 05:45:57 -0400 Received: from mail-wr0-f200.google.com ([209.85.128.200]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1f5pqe-0001Ox-Cs for linux-kernel@vger.kernel.org; Tue, 10 Apr 2018 09:45:56 +0000 Received: by mail-wr0-f200.google.com with SMTP id o70so7852110wrb.19 for ; Tue, 10 Apr 2018 02:45:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=T56J4vJuFd7gXRRaUmw73seQWF7s8or5RcZdMVqLTCA=; b=A4G45L3QDDPRKhJdcNTIxjQ0P1QsdnPqXX3L/OxNsDMLIASlmR8ZsJBCc9NJevIfkl ZlakPev4PPdicR0WUzvAk3EbTf0JY6sdRrxB0h18UeyMIMCdfVRk4xFaZKRrfXLb0mSy 2iDdW9IZR0Ua9DnrBO9lxtOb0jfnrFjWXLTSFflyVjB2xMPtwqsMCILMyGaTxkIhINIo 0HX4w7sS1betavMdmdN5Z3kLXtEyAoByhwyqj+1LCXIrLwVUttyxl/nSYpXtnMuzrHm9 WMNtyUbWhqgo+rDTG53S+6SMWyIgKkdamgCxdeL6IvnbrVj6vfxrw3obj3mh86jHoPxJ hluA== X-Gm-Message-State: ALQs6tDIINiJctDZeO5jobHCwo9PPUjurFB7GX23n8tLNaYi0ZdHHdRV JH1rNd7duLejqD5DwDndI36ko+uqio7U8S21PdtdOzgdBwgCBp6VU1jEcm/T0u9LFy8KGUo3SF+ z8RwiVA8QogtuJNhVqS7qlvdA/2Ba93NWpjKhkpu2xg== X-Received: by 10.80.153.220 with SMTP id n28mr2221035edb.240.1523353556092; Tue, 10 Apr 2018 02:45:56 -0700 (PDT) X-Received: by 10.80.153.220 with SMTP id n28mr2221017edb.240.1523353555900; Tue, 10 Apr 2018 02:45:55 -0700 (PDT) Received: from gmail.com (u-087-c137.eap.uni-tuebingen.de. [134.2.87.137]) by smtp.gmail.com with ESMTPSA id e24sm1560727edc.47.2018.04.10.02.45.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Apr 2018 02:45:55 -0700 (PDT) From: Christian Brauner X-Google-Original-From: Christian Brauner Date: Tue, 10 Apr 2018 11:45:54 +0200 To: Michael Ellerman Cc: shuahkh@osg.samsung.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, viro@zeniv.linux.org.uk, ebiederm@xmission.com, torvalds@linux-foundation.org, gregkh@linuxfoundation.org Subject: Re: [PATCH] selftests/filesystems: Don't run dnotify_test by default Message-ID: <20180410094553.GB3438@gmail.com> References: <20180410062053.8816-1-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180410062053.8816-1-mpe@ellerman.id.au> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 04:20:53PM +1000, Michael Ellerman wrote: > In commit ce290a19609d ("selftests: add devpts selftests"), the > filesystems directory was added to the top-level selftests Makefile. > > That had the effect of causing the existing dnotify_test in the > filesystems directory to now be run as part of the default selftests > test-run. Unfortunately dnotify_test is actually an infinite loop. > > Fix it by moving dnotify_test to TEST_GEN_PROGS_EXTENDED, which says > that it's a generated file (ie. built) but should not be run as part > of the default test suite run (it's an "extendend" test). > > While we're here cleanup a few other things, devpts_pts should be in > TEST_GEN_PROGS to indicate that it's built, and with the above two > changes we no longer need a custom all or clean rule. > > Fixes: ce290a19609d ("selftests: add devpts selftests") > Signed-off-by: Michael Ellerman I'm not sure if I should've made it to be built given that it wasn't before but it probably doesn't hurt. It's either that or remove it I guess. Acked-by: Christian brauner > --- > tools/testing/selftests/filesystems/Makefile | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/tools/testing/selftests/filesystems/Makefile b/tools/testing/selftests/filesystems/Makefile > index 4e6d09fb166f..5c7d7001ad37 100644 > --- a/tools/testing/selftests/filesystems/Makefile > +++ b/tools/testing/selftests/filesystems/Makefile > @@ -1,8 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > -TEST_PROGS := dnotify_test devpts_pts > -all: $(TEST_PROGS) > > -include ../lib.mk > +TEST_GEN_PROGS := devpts_pts > +TEST_GEN_PROGS_EXTENDED := dnotify_test > > -clean: > - rm -fr $(TEST_PROGS) > +include ../lib.mk > -- > 2.14.1 >