Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2266564iof; Wed, 8 Jun 2022 00:55:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzkzcfEtBPgbULwlz53QmnBG18oDJgrt+5+7QGCCzfLcSpMA1zU6usp78e+Ofx6zCVter2 X-Received: by 2002:a63:401:0:b0:3fc:8810:f0ae with SMTP id 1-20020a630401000000b003fc8810f0aemr28677210pge.335.1654674903667; Wed, 08 Jun 2022 00:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654674903; cv=none; d=google.com; s=arc-20160816; b=0DL6iHatDegiBJvPxyTwh4+t3ryPUtQFDozny7fkYWxNzks9MyBvqWugXIyHxxKGkA CkRkrK9kocb4DTAG2cVXT7Dg3FipfjNyIeDmCKoLcGwgj2g/4nbnKdhZJv76z3ELYxm+ pszc7bHItBuBFKCWXtCaCZ+7O2HqFZfK5pOfd8R0JWLAAxR6w4P/lhChG25A0Zn0uzuf g9/XTygqRqa2l4lP4mf9NHD/dkuat/3Vbv1iePOCVA8rJkglhgNaDlKdWeBraQCR8jeU fLPDUnbx3JXbiUBqN760oCNSAdec8bKXs3DMNj2atAg27VpCb5co7gdnjAt9LNEAfjcn 16gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bmfAAnIYVZXfj80iWTlzGi6pKWuivhrPbrflaEJ7XUc=; b=Zu+iE/fXcYWlmrpED4tdyUqELM03ClyLXdY9hHmE5MD1iRMF+SlFOuznvYJSppYm0N n+04Gg9oh6gOedNkNIPWRK+31JS/JVenwQCMtkQA3V7ETMqojBRBRpOosh7tYGhCnK2B ds6bP+MIhxKjHTwdHtqS4yaBIf0U0IqwBz/yW/mtS9UrO+RwdUcSClOL/rj+OBr6cOIR 9Nr0nqfv+HN45FZpGTjAR1Pp1+pcbb4PJxc3KAMRL+dYBA2C8IrDk2zAvvW+q7bP5Npt 1BsUI7z36TOW5Qo106q0Exj9qVGyJiLoVnnANYJsz9iZcjsb0P7SDojFKJFqcTacIJWy gzrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d3KPGz3E; 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=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j14-20020a056a00130e00b005182883ce81si29925815pfu.155.2022.06.08.00.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 00:55:03 -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=@linuxfoundation.org header.s=korg header.b=d3KPGz3E; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 61E791D8A5B; Wed, 8 Jun 2022 00:24:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444732AbiFHBHy (ORCPT + 99 others); Tue, 7 Jun 2022 21:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380764AbiFGWbx (ORCPT ); Tue, 7 Jun 2022 18:31:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB42D27B9BB; Tue, 7 Jun 2022 12:25:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 64CC0B823CA; Tue, 7 Jun 2022 19:25:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D18F4C34115; Tue, 7 Jun 2022 19:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629916; bh=h96rxag+E6cq0S1AR/1pcZZD3EluK5LjxM3GIvxyU98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d3KPGz3EWS/Wyif7tSmZRehTV+zVCA5CBnz71YXYDbX9H5klWuW66SiMNFv2vt3SP hKjgzAOsBVtHe5eZ67aKytjvs+T58ApA3eww9osLoPXv9KlJCGwIEaIp5mT5CA3ZxD huC/ET8YDr8ibqSm03UXNW4HTwPYOD7i6PX3QUQE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Waiman Long , Tejun Heo Subject: [PATCH 5.18 864/879] kseltest/cgroup: Make test_stress.sh work if run interactively Date: Tue, 7 Jun 2022 19:06:22 +0200 Message-Id: <20220607165027.932414097@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 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 From: Waiman Long commit 213adc63dfbcdff9a0c19ec1f2681fda9c05cf6d upstream. 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 Signed-off-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/cgroup/test_stress.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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