Received: by 2002:a17:90a:2044:0:0:0:0 with SMTP id n62csp1138700pjc; Thu, 9 May 2019 14:39:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYNfRGKPoHvuXsPm+cfoyQKFlCJp/6me+j7bQuQUTt1EHQFi5owvY0zqWuhmS7FTmPykP7 X-Received: by 2002:a17:902:b410:: with SMTP id x16mr8021734plr.174.1557437946092; Thu, 09 May 2019 14:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557437946; cv=none; d=google.com; s=arc-20160816; b=FvW+xUFk1xXLciKcimhpiaxqwHzRrpbAYwrohBLij5ngGnxYQa93ZqPPCkrGA08AU0 1Y4/aFBnKbI5BQsRum3Ehpd6KW4G5GTgyxalZ3Q5mnSXLyUp6LMUZo2tjuHVfCH4OkKy o3xbGRNVnATV9psmuLBTsdO/JLyCHk22GXrGBTyCH+AnOXt1wUlkWQilg6hQrVlAT8Gy pQvAYmD6bIFBVRr29nYHSK/5dnQLnKfBtC2BK951fnh+gyihVeZa+mnYW6Sj7J60vBZt u1L8p+scBSSFn/a1u2Kk0U37/AirgPqDUgY/7mqdYVRgWJ0FmbQKJ///0rb7P16EhWCI 4Fvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=7btbbR7c/vPtht4PUO7krhfX4YX9xNNnfzzgtfFhs3M=; b=Z/SfpsRdSAPZiXZy0SpRMKWXgZ1ne6XmnVoovy1d0IcWsfaXfJcRfspw/FypO42dpv WxbyDaIL3CmcXySJSL/anS7yqFQstTZeONRTfSx8hGLBtxcb05wcQ5SVrdVi6cfkpCHY 3Wyon+G5bmHpNnB7Ksum/5yAkFseKxVUmkGHr8bsCUn5u0wFxNlZyxx3F4l+GKCfsyzg 2tcvjoUd9eF5BTHi09Y2c3ldDFISMJFgSS2QXWd5DnIEfZjGR3fTEx2o2k/EB86NlCP7 xwlIMHvS3s2dy333BSefeJeqb5B76D92fUO7lkSpNwFCN059fvsUFdHJl84IuIi7k8wI JVIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EiRI1PmK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si4835101plb.347.2019.05.09.14.38.49; Thu, 09 May 2019 14:39:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EiRI1PmK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727212AbfEIVhX (ORCPT + 99 others); Thu, 9 May 2019 17:37:23 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46985 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbfEIVhV (ORCPT ); Thu, 9 May 2019 17:37:21 -0400 Received: by mail-qt1-f195.google.com with SMTP id i31so4267345qti.13 for ; Thu, 09 May 2019 14:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7btbbR7c/vPtht4PUO7krhfX4YX9xNNnfzzgtfFhs3M=; b=EiRI1PmKY/H4MM2Pxy1fqstG9RoZS3ea9LXQ6k3D1gQTfu/FZSnwICtMQCb3oKdnbe /C4qDU6MyrjZ3MtRJWjP3yeNjDYGcGR5Xo0qqc24V+aDeeWAW0hXLC4vy4Rt4JQhMDtk zr+vBZEC8nDKt0PUYh+2gm874xSw4UXHeTvydHqtabORZ0C3ZfcgoPGi1ojtRgnoEUgB gtyt9YjPb2c+8SPRhJFS9EL3T0w7MWpp8bx3nRF9A+D65Z2h7VgnvsRAAS5jTn3YMH/r kpWLejK+VBlV9soPbCjE0XyCu27WV/S4a3dzPU+6UttYEUsSlsWELa6VJ96ue5VCLbVf X/+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7btbbR7c/vPtht4PUO7krhfX4YX9xNNnfzzgtfFhs3M=; b=YZNsauQbD2L3BRi8Kv5T9qEJfljA525nMZmO14ojhm76LMRH/8Ga/6rA40v/bQw5OI XoLaoRCS9OHU+p5Qab+HkFbEeFLgcVHBS87KGvt2no9og5Nv8pcTtvhHtRJX1tUcwvCv YkPFSgHZKDhKzh58gOO7YBBbdUMVYtUWtc3luliRDMfXsRq7EqiRmUJtdjD5zdVLhV4f V+SQNqjysDrBvnGDWoyGOzaCnjCPLc70WN6aBVMb979nnAjhtfBXUJjo1Rxyfxidl4c/ 9jAec07jdKaVkx3+23TDk/KKNNjgJhwbDcfXTPGqnl9amghDjYvoaTGxpFxJ4EdiqVXg v06w== X-Gm-Message-State: APjAAAUMnzPUY36HGc7rOx+Mvofi0HuPC1cDPdiqClDQgrt6iS7Q33OU 1bzFVPUeRenu9bw7D5ebyJfhn+E= X-Received: by 2002:a0c:b99d:: with SMTP id v29mr5587476qvf.3.1557437840955; Thu, 09 May 2019 14:37:20 -0700 (PDT) Received: from gabell.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 76sm1899721qke.46.2019.05.09.14.37.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 14:37:20 -0700 (PDT) From: Masayoshi Mizuma To: Steven Rostedt Cc: Masayoshi Mizuma , Masayoshi Mizuma , linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] ktest: pass KERNEL_VERSION to POST_KTEST Date: Thu, 9 May 2019 17:36:45 -0400 Message-Id: <20190509213647.6276-5-msys.mizuma@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190509213647.6276-1-msys.mizuma@gmail.com> References: <20190509213647.6276-1-msys.mizuma@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masayoshi Mizuma For BLS, kernel entry is added by kernel-install command through POST_INSALL, for example, POST_INSTALL = ssh root@Test "/usr/bin/kernel-install \ add $KERNEL_VERSION /boot/vmlinuz-$KERNEL_VERSION" The entry is removed by kernel-install command and the kernel version is needed for the argument. Pass KERNEL_VERSION variable to POST_KTEST so that kernel-install command can remove the entry like as follows: POST_KTEST = ssh root@Test "/usr/bin/kernel-install remove $KERNEL_VERSION" Signed-off-by: Masayoshi Mizuma --- tools/testing/ktest/ktest.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index df0c609c7c50..abd6f37b0561 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -4456,7 +4456,9 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) { } if (defined($final_post_ktest)) { - run_command $final_post_ktest; + + my $cp_final_post_ktest = eval_kernel_version $final_post_ktest; + run_command $cp_final_post_ktest; } if ($opt{"POWEROFF_ON_SUCCESS"}) { -- 2.20.1