Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1011058iob; Fri, 13 May 2022 19:32:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyecNyRSawR5oWFf/atzFmQKpieXS7zGKM7nfZ+Tog4mlqw75I3MTu9rU2TjDQDgcAitAZ5 X-Received: by 2002:a05:6000:1707:b0:20c:660c:7c78 with SMTP id n7-20020a056000170700b0020c660c7c78mr6136325wrc.150.1652495532001; Fri, 13 May 2022 19:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652495531; cv=none; d=google.com; s=arc-20160816; b=wy1XwOggdsp3dj6JHss908QfGBDBvadslgjeBLhuYHzoXBfdzDA0gbzK2/couWBP67 GzkZRQTDLWqjRWwwWFnUB+dkwWx7HPv06/xB6zSNp1RpulFzR+tYPyEZoG+KyBSkgZ0V r+qlvawvwRgu+E6N6rP1htS8+VC+iKagYwlDDwaug8CHuOrplM1uUqOlypD67SpEqoFR sCfM8mrjvAa3JBmwHJD//Bk7qJeBb1Jj3ztZxtM1t+pYzXlY2fEDCp74TSVRy1SJAGRn oP/ZnkDKcZSkYlw1LbrknRnJvhemlJiFW0hV+xtwFAAI7Glkq3/ymHHDIzgwDgJNmKiI K3tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dQfd09AP/gq8POaUyhiUEVQH1+5iVG2OnErFJHZMVgI=; b=TpBp5oI57I0b/0YyJpw80kDyqza6exXNjpBAj5ZKlwXDFcOgwFyazgrL6ENKgtkCDn /7OMqHfThJ+5U1GrXM49TRcnTU9R+hEzAAM80y1DUm4qS94XNNRpWNDfcbhZPosN84xJ LlDeUMUcH+ROgCmPQmbUfHvHNaao3xHFvaKp7S9NW//KfJxIqOs2Gqk09F4M+3bCm9zT mjbWvVZbM0qmpuhuzS9HejUFQ5qfSkuk6dFojOtt116LyU1NLNewWfalJwPLoxdO/jE6 j9t9PLO+xUwSnsF796QxMt9YwCURODS2dIRtT7GJk3laWP+Ag/iRNI+4ZX4uVjzJZ+29 i/qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BkyhyCbY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j8-20020a05600c1c0800b00394513b0928si8016740wms.185.2022.05.13.19.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:32:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BkyhyCbY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E68A4E30EB; Fri, 13 May 2022 17:45:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382411AbiEMQfg (ORCPT + 99 others); Fri, 13 May 2022 12:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344683AbiEMQfd (ORCPT ); Fri, 13 May 2022 12:35:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 240A52646 for ; Fri, 13 May 2022 09:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652459731; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dQfd09AP/gq8POaUyhiUEVQH1+5iVG2OnErFJHZMVgI=; b=BkyhyCbYUIcYUifYf7KpHE0bh6s/2+c9OCrvEvs8ZxgRQUsB3WUcwSi1UwiyuiBeBBpINl 9Ef5spV/yF4fzkOqC8THUY3xIJlo55srwDkxCHMXWQd1FvaW3zDu2He6KS7lT153kAYQYg Q72dx7Lyw34O8FH1RC7+EJ5f0EKoZ4c= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-487-qhYgxGdEOtiIYiu1OcJd6w-1; Fri, 13 May 2022 12:35:26 -0400 X-MC-Unique: qhYgxGdEOtiIYiu1OcJd6w-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 63FE2382ECDC; Fri, 13 May 2022 16:35:25 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.22.16.240]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2FE8340D2820; Fri, 13 May 2022 16:35:25 +0000 (UTC) Date: Fri, 13 May 2022 12:35:23 -0400 From: Phil Auld To: Waiman Long Cc: linux-kernel@vger.kernel.org, mkoutny@suse.com, tj@kernel.org Subject: Re: [PATCH] kselftest/cgroup: fix test_stress.sh to use OUTPUT dir Message-ID: References: <20220512143439.26104-1-pauld@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 13, 2022 at 12:32:15PM -0400 Phil Auld wrote: > On Fri, May 13, 2022 at 12:19:24PM -0400 Waiman Long wrote: > > > > On 5/12/22 10:34, Phil Auld wrote: > > > Running cgroup kselftest with O= fails to run the with_stress test due > > > to hardcoded ./test_core. Find test_core binary using the OUTPUT directory. > > > > > > Fixes: 1a99fcc035fb ("selftests: cgroup: Run test_core under interfering stress") > > > Signed-off-by: Phil Auld > > > --- > > > tools/testing/selftests/cgroup/test_stress.sh | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/tools/testing/selftests/cgroup/test_stress.sh b/tools/testing/selftests/cgroup/test_stress.sh > > > index 15d9d5896394..109c044f715f 100755 > > > --- a/tools/testing/selftests/cgroup/test_stress.sh > > > +++ b/tools/testing/selftests/cgroup/test_stress.sh > > > @@ -1,4 +1,4 @@ > > > #!/bin/bash > > > # SPDX-License-Identifier: GPL-2.0 > > > -./with_stress.sh -s subsys -s fork ./test_core > > > +./with_stress.sh -s subsys -s fork ${OUTPUT}/test_core > > > > > > I would suggest using "${OUTPUT:-.}" as the variable OUTPUT may not be > > defined if test_stress.sh is run interactively. > > > > I worked both ways as is. > > But I'm not sure why :) Yours is probably better. Cheers, Phil > > Cheers, > > Longman > > > > -- --