From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755944AbdKCKR5 (ORCPT ); Fri, 3 Nov 2017 06:17:57 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:52600 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbdKCKRx (ORCPT ); Fri, 3 Nov 2017 06:17:53 -0400 X-Google-Smtp-Source: ABhQp+SAPCS49Njbo8uq7zeIOIFbqSH0NTx8qg4MMHKZ06Fjv5vC6NVDhX6CMD3o6FbpCK+mDANh+Q== From: SeongJae Park To: paulmck@linux.vnet.ibm.com, josh@joshtriplett.org, rostedt@goodmis.org Cc: shuah@kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, SeongJae Park Subject: [PATCH 5/9] rcutorture/kvm.sh: Support execution from any directory Date: Fri, 3 Nov 2017 19:17:24 +0900 Message-Id: <20171103101728.28288-6-sj38.park@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20171103101728.28288-1-sj38.park@gmail.com> References: <20171103101728.28288-1-sj38.park@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'kvm.sh' for rcutorture is restricting user to execute it from top of linux source tree. It is just a subtle restriction, but users using it for the first time could forget the restriction and be confused. Moreover, it makes commands a little longer and the long commands could frustrate debugging people. This commit let users to call the script from any location. Signed-off-by: SeongJae Park --- tools/testing/selftests/rcutorture/bin/kvm.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index 36f7f499698f..cd62933e33d7 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -1,8 +1,7 @@ #!/bin/bash # # Run a series of 14 tests under KVM. These are not particularly -# well-selected or well-tuned, but are the current set. Run from the -# top level of the source tree. +# well-selected or well-tuned, but are the current set. # # Edit the definitions below to set the locations of the various directories, # as well as the test duration. @@ -34,6 +33,8 @@ T=/tmp/kvm.sh.$$ trap 'rm -rf $T' 0 mkdir $T +cd `dirname $scriptname`/../../../../../ + dur=$((30*60)) dryrun="" KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM -- 2.13.0