Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp988559iob; Fri, 13 May 2022 18:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytPOVnnSBzbt5icriUB6YfwCq8CGJ336C/CjlrCaJ5SvbBWnNjCjPGMvUQ85DaHZL5siRx X-Received: by 2002:a05:6000:1810:b0:20a:d512:96b9 with SMTP id m16-20020a056000181000b0020ad51296b9mr5888297wrh.611.1652492697473; Fri, 13 May 2022 18:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652492697; cv=none; d=google.com; s=arc-20160816; b=XvCRTCsvef0Zds9rpIzRECVi+Vy2F5b9H3m27QuWfdTgOjY16m6TvS19jrw7lYz3zo Y/QgaPq2C+vFarKReFb3eJPZOcXNv1l2OGmSZn/hIsvdqt5oO8HXbe805kPPMo177zQ2 SHtNekB9YbL8wKfPuo0xTAWuYJiQWpY+lO4il8B9OxiO/YtrTX3ACmM5D8MtIwEixMgg kUBKqpNBqJ+cy8fLqOkfHqUJGGI2+ddTg2U5owgc2X2KDtgrP2TCYoVL19CBAJjgm6CL kY1BLE3z783Jj8W9hQ1MXAmY9OYDIy01OLhMl4gA+SoTSWqVNtMLRaT0Yghon+Dk/3mb vIiQ== 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=1LW72Jjy9MKnDZ4qBo9AkKccKnp0hdNYiyWQhDRqlzQ=; b=t/qHYyk62i/HnIyjwGGWlOH0Vuu1hejryf9XnmLmyDM7D9YNkiVHNjs7HWoR28P4Cx e2JOcvJ81VBq/ACe0T48soFq5zfYONt93gmPseGd/YGSRRfJh+1U1oVvhv6OuFufJ9xb UCU1XXsyKw9fnOj8YBz6WYMDuVNezNpN+Hebb2WqHInTXHHEnxPi3RVxnIwRukiSngQB WRsmiFQS1q/h0G2ukxQRwk5Yld6/OG+OALVZqzZC5LTQOtN5D0EeFLM00UA9A5HP/u9K uP/21w9i6Xy7qnQVfjeEueSQraFc/alTDqcJ+nBhJvhhNh1qWp4POtITmU5qWKZwkHPx uVkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ETyUQBhR; 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 a22-20020a05600c2d5600b003943512e579si3410067wmg.98.2022.05.13.18.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:44:57 -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=ETyUQBhR; 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 5EC714332AC; Fri, 13 May 2022 17:09:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384093AbiEMURQ (ORCPT + 99 others); Fri, 13 May 2022 16:17:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384089AbiEMURN (ORCPT ); Fri, 13 May 2022 16:17:13 -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 5537333EA5 for ; Fri, 13 May 2022 13:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652473031; 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=1LW72Jjy9MKnDZ4qBo9AkKccKnp0hdNYiyWQhDRqlzQ=; b=ETyUQBhRqyv9RDw7fYS2GW7OEYukWf0sLCGrphOO9AcQFWG/u8vN/XTRWNvb034660erDX 78PvnkHlFQR3MSY0bVSybRLN9YzaL5TrZWOeZBset9hHdKEsx0fpTUgFB1hOygORG8td2T vGe6xSaR4oyheXqHXR9CO4zYNsau/no= 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-461-Vp2BTxdoPM2uN1KrJHTUzw-1; Fri, 13 May 2022 16:17:06 -0400 X-MC-Unique: Vp2BTxdoPM2uN1KrJHTUzw-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 8F1AC101A52C; Fri, 13 May 2022 20:17:05 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.22.16.240]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4902940D2820; Fri, 13 May 2022 20:17:05 +0000 (UTC) Date: Fri, 13 May 2022 16:17:03 -0400 From: Phil Auld To: Waiman Long Cc: Tejun Heo , Shuah Khan , cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Michal =?iso-8859-1?Q?Koutn=FD?= Subject: Re: [PATCH] kseltest/cgroup: Make test_stress.sh work if run interactively Message-ID: References: <20220513190928.676841-1-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220513190928.676841-1-longman@redhat.com> 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 03:09:28PM -0400 Waiman Long wrote: > Commit 54de76c01239 ("kselftest/cgroup: fix test_stress.sh to use OUTPUT > dir") changes the test_core command path from . to $OUTPUT. However, > variable OUTPUT may not be defined if the command is run interactively. > Fix that by using ${OUTPUT:-.} to cover both cases. > > Signed-off-by: Waiman Long > --- > 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 109c044f715f..3c9c4554d5f6 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 ${OUTPUT}/test_core > +./with_stress.sh -s subsys -s fork ${OUTPUT:-.}/test_core > -- > 2.27.0 > Thanks Waiman! I did not think to try manually running it. Cheers, Phil --