public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Xing Gu <gux.fnst@cn.fujitsu.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v3 2/9] lib/sched_mc.py: add testcase/bin path for searching ebizzy/kernbench
Date: Mon, 2 Mar 2015 16:00:17 +0100	[thread overview]
Message-ID: <20150302150017.GC27832@rei> (raw)
In-Reply-To: <1425024732-30751-2-git-send-email-gux.fnst@cn.fujitsu.com>

Hi!
> +            else:
> +                print "INFO: ebizzy benchmark not found"
> +                sys.exit(1)
> +        else:
> +            path = '%s/testcases/bin' % os.environ['LTPROOT']
> +            os.chdir(path)
> +            workload_file = ""
> +            for file_name in os.listdir('.'):
> +                if file_name == workload:
> +                    workload_file = file_name
> +                    break
> +            if workload_file == "":
> +                print "INFO: ebizzy benchmark not found"
> +                sys.exit(1)
> +        get_proc_data(stats_start)
> +        get_proc_loc_count(intr_start)
> +        try:
> +            if background == "yes":
> +                succ = os.system('./ebizzy -t%s -s4096 -S %s >/dev/null &'
> +                    % (threads, duration))

The $LTPROOT/testcases/bin should be in $PATH while LTP is executed. So
why don't we remove all the code that tries to figure the path and just
run os.system('ebizzy ....') and return TCONF if that returned 127?

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2015-03-02 15:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27  8:12 [LTP] [PATCH v3 1/9] kernel/power_management: fix no_of_cpus error of change_govr.sh etc Xing Gu
2015-02-27  8:12 ` [LTP] [PATCH v3 2/9] lib/sched_mc.py: add testcase/bin path for searching ebizzy/kernbench Xing Gu
2015-03-02 15:00   ` Cyril Hrubis [this message]
2015-02-27  8:12 ` [LTP] [PATCH v3 3/9] power_management: split runpwtests.sh into separate testcases Xing Gu
2015-03-02 14:49   ` Cyril Hrubis
2015-02-27  8:12 ` [LTP] [PATCH v3 4/9] power_management: call the function eg. test_sched_mc instead of script test_sched_mc.sh Xing Gu
2015-03-02 14:50   ` Cyril Hrubis
2015-02-27  8:12 ` [LTP] [PATCH v3 5/9] power_management: delete unused files Xing Gu
2015-02-27  8:12 ` [LTP] [PATCH v3 6/9] power_management: prefix files with "pm_" Xing Gu
2015-02-27  8:12 ` [LTP] [PATCH v3 7/9] power_management: install lib/pm_sched_mc.py into testcases/bin directory Xing Gu
2015-03-02 15:05   ` Cyril Hrubis
2015-02-27  8:12 ` [LTP] [PATCH v3 8/9] power_management: compile testcases/kernel/power_management by default Xing Gu
2015-02-27  8:12 ` [LTP] [PATCH v3 9/9] power_management: add it into default Xing Gu
2015-03-02 15:09 ` [LTP] [PATCH v3 1/9] kernel/power_management: fix no_of_cpus error of change_govr.sh etc Cyril Hrubis

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=20150302150017.GC27832@rei \
    --to=chrubis@suse.cz \
    --cc=gux.fnst@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox