All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] cpu_hotplug: Add executable file's path
Date: Tue, 23 Feb 2021 11:14:29 +0100	[thread overview]
Message-ID: <YDTVheiu2gRPs3oQ@yuki.lan> (raw)
In-Reply-To: <F3D3F6AC3820BB4C9FCA340DB5C32CB403879BE2@dggeml511-mbs.china.huawei.com>

Hi!
> Thanks for your review!
> 
> In many embedded system, before running testcases we need type in the following lines:
> 
>     #export LTPROOT=/opt/ltp
>     #export PATH="$PATH:$LTPROOT/testcases/bin"
>     # cpuhotplug02.sh -c 1 -l 1
> 
> It is not convenient for running test after every login.

This is what you have to do if you are not using the runltp script and
that's it. We will not add workarounds into our testcases.


Also nobody stops you from writing a short wrapper script such as:

$ cat run_test.sh

#!/bin/sh

export LTPROOT=/opt/ltp
export PATH="$PATH:$LTPROOT/testcases/bin"

$@

And then using it as:

./run_test.sh cpuhotplug02.sh -c 1 -l 1

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2021-02-23 10:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23  9:13 [LTP] [PATCH] cpu_hotplug: Add executable file's path zhaogongyi
2021-02-23 10:14 ` Cyril Hrubis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-02-23  6:54 zhaogongyi
2021-02-23  7:54 ` Yang Xu
2021-02-23  3:37 Zhao Gongyi
2021-02-23  5:15 ` Yang Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YDTVheiu2gRPs3oQ@yuki.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.