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
[email protected]
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list