Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp939373iob; Fri, 13 May 2022 17:09:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmnhFPboyR8FiV57sRA1DsyoKgn/9Hr9MOkRUHWw5odk/+Q86bc23RNujRrfEfpdkcHzFp X-Received: by 2002:a5d:40cf:0:b0:20a:e0cf:2a47 with SMTP id b15-20020a5d40cf000000b0020ae0cf2a47mr5596585wrq.575.1652486949076; Fri, 13 May 2022 17:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652486949; cv=none; d=google.com; s=arc-20160816; b=bltATF9C1S/WvKzPXHicREopRgUlRswJVms2pmq4oQXjpiu6iynPmRri5G+UGLBlGV 9irUgzhFDW2UBa9dxgTXDIWn/keKEForPb1hNv/SeBKXxKw98D0aXT4z6W7vdxFEb+zV uDIHhqIRd6ACbIJiXKC0VlQyIiam0noDiiKdznayNwK0nkZhoq6JZNU+j7ABKuAvzGw/ EJXJe2FXgDSOO50xlb3QXV/9i98tLgVL4YLxwSnpeEU2Z2GLbU33fATrOAFb8o8WvQpQ 1Od/T9bVCBkzF/ILHMtuCbVrJHTBUlr45a9fCJbpoWG5AGPtzvpzqoXkCyaWNkpcEnED zPOg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=g2ByD6HON5FpzuaYZbt0zPasNhNKA4nJl1y1oOF2k0Q=; b=tkyPuASqwhHeQdJe+xwyMuLWH9TF/VreQ9cEE5W3Q3T+rRGGaxWff9qX6tw4tDv5k1 avdwXzmnUCC+6cayyfLuAf5npu1W+cc9LS52aioIClFo9ZtQ253mEl+63As5f8usHodZ gmoy79lXztbLlsMMKyoPe8Dr7K9CkyY942Wter7aKRRuFgqP6VHncNaiFh6ho2SPsZPO +3498dClwtAHQj6EMnHqWUL9cIO0YtfKD3RLuxvCSTtx36XnlMFuaRK+FkuaZA53RHu2 cBR1mE4C9em3VwFjx8r1/fH91q1fDEvy918X24dXU6TCZ6OOBSLcYO2KASz7uETNazzv C1lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SjxoLXdp; 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 c12-20020a5d4ccc000000b0020c70d07773si3013684wrt.663.2022.05.13.17.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:09:09 -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=SjxoLXdp; 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 8A5772F12C7; Fri, 13 May 2022 16:11:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383565AbiEMTKA (ORCPT + 99 others); Fri, 13 May 2022 15:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383569AbiEMTJl (ORCPT ); Fri, 13 May 2022 15:09:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95272344F5 for ; Fri, 13 May 2022 12:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652468979; 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: content-transfer-encoding:content-transfer-encoding; bh=g2ByD6HON5FpzuaYZbt0zPasNhNKA4nJl1y1oOF2k0Q=; b=SjxoLXdpDFPhGi0ko2OGGuK8L1VN1p9i1rzFOnvWUcOVBIFi341y5A0tfwHGNYuRpClj/L G417bxGBWefitoQ2MsctqQvG0KMF5zpRr5VXwydUgOpRLKRk3ResbM18KoD4XZ6YywlYS+ +9jVLfnvmcHSi4IBnOFUQ3YAnhd4BFk= 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-360-4FyVxrVrNKuZWrNOyJ2djQ-1; Fri, 13 May 2022 15:09:36 -0400 X-MC-Unique: 4FyVxrVrNKuZWrNOyJ2djQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0523680B71A; Fri, 13 May 2022 19:09:36 +0000 (UTC) Received: from llong.com (unknown [10.22.11.63]) by smtp.corp.redhat.com (Postfix) with ESMTP id A28AF407E1C0; Fri, 13 May 2022 19:09:35 +0000 (UTC) From: Waiman Long To: Tejun Heo , Shuah Khan Cc: cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Phil Auld , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Waiman Long Subject: [PATCH] kseltest/cgroup: Make test_stress.sh work if run interactively Date: Fri, 13 May 2022 15:09:28 -0400 Message-Id: <20220513190928.676841-1-longman@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 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 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