Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp945920iob; Fri, 13 May 2022 17:20:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOSP/1U+DsZW5154d2iXedeukYPFMaIDPPihshW9j/7klJ2oJEp2vzNy+cqmWJqwsa0IVr X-Received: by 2002:a05:600c:1f08:b0:394:9060:bb54 with SMTP id bd8-20020a05600c1f0800b003949060bb54mr6695566wmb.73.1652487604758; Fri, 13 May 2022 17:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652487604; cv=none; d=google.com; s=arc-20160816; b=g71aLLCGOLP8tKh/26TOcXV8m5C4TphFfhCEgOcELwoXV8mouBxt+1ZroaA7myg9rF vd6giuTVHh7xxLnqK18k2xQRLbttLwFNkQ0e/eYbkWgEaJfbruv1hQB+eoUbPoUcyei0 YeV2f0HlYRV1DhwFEM+WH7IdCKvcySf6qb57GibTNPaaG+v9udKZyl/HcNzkO/sQUL7w DVri4h6vPvP8TwdIVb2QuLvjMTOY44CQ3QShuvp6KGPerNgARZmYSFol5SCNZsZOZ0KY VQwJ3anVx57Bl9QmjD1zdw408If47X+teoE25Jnvwp4WHk+XKs5C91LniYM7mYTmLAee P3CQ== 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=uO6U74szUS3EMQ0vAs41/itY3d7xTijwR9U6DhLEJMQ=; b=N7K4GvQNTthpK4RqQDrxc24BUPPogLXGD/rZkWguEEi8Y02zCK3KxCDRBAPQOtEowY MFrPDZ/rrSydE7XMIx2v0fnH0mVu3WrVfp1uzS/NI+2RsDJqFVRu3AVKMrdN7JIU2czx ilMnK8MT8HSfXWYl/iO4WQx9OTQpUaoGvD8AkyuUJpacwNSqOrX72SvtQPifKtW5eDNT kGEVZ2EkMh9ZkjL+Uzy8qmjjlEov+L16AtpQohqit7p8ToqdugRNzJDx72QtgeShARaI pc9KH6RWv/rj1Z13anfTq3ebZdMq0hIiy3YMTupXRFj1IK3NNnkje7N9E9d2Gj2imZyw bSyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V9q+vqH+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f20-20020a05600c155400b00393fdfa3c79si4818742wmg.109.2022.05.13.17.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:20:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V9q+vqH+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 8F1A414D3A; Fri, 13 May 2022 16:17:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235646AbiEMQcf (ORCPT + 99 others); Fri, 13 May 2022 12:32:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381898AbiEMQcW (ORCPT ); Fri, 13 May 2022 12:32:22 -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 8EBFC635E for ; Fri, 13 May 2022 09:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652459539; 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=uO6U74szUS3EMQ0vAs41/itY3d7xTijwR9U6DhLEJMQ=; b=V9q+vqH+CL5ZKdN7GrHB9vYAD7XNrhn0L4EVDRVMzj7VCzHQDXpC9gb0NXDsiuZfpsfkFc 08PvAVy+D22DywB8V+RhAHU+iUoghwanD/KDhkEHufSeqxbpas6g7Zl7JhxiSpumwPuN7o oGblppNuKQkvPx9X9nlW4cadKwd1fu4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-459-wMI-x-GzPfeDnMY4eNy2CQ-1; Fri, 13 May 2022 12:32:16 -0400 X-MC-Unique: wMI-x-GzPfeDnMY4eNy2CQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B2A8E101AA44; Fri, 13 May 2022 16:32:15 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.22.16.240]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 811072166B4E; Fri, 13 May 2022 16:32:12 +0000 (UTC) Date: Fri, 13 May 2022 12:32:10 -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.78 on 10.11.54.6 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: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. > Cheers, > Longman > --