From 7d0ad60f314a438a5d658a863b286031d787fd62 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 21 Jul 2018 18:23:31 +0200 Subject: don't use custom environment --- bench_loop.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bench_loop.py') diff --git a/bench_loop.py b/bench_loop.py index 6724890..c0162e3 100644 --- a/bench_loop.py +++ b/bench_loop.py @@ -54,16 +54,14 @@ class Benchmark_Loop( Benchmark ): for tname, t in self.targets.items(): result = {"VSZ": [], "RSS" : []} - env = {"LD_PRELOAD" : t[1]} if t[1] != "" else None - if env and "LD_LIBRARY_PATH" in os.environ: - env["LD_LIBRARY_PATH"] = os.environ["LD_LIBRARY_PATH"] + os.environ["LD_PRELOAD"] = t[1] target_cmd = cmd.format(t[0], *args).split(" ") if verbose: print("\n" + tname, t, "\n", " ".join(target_cmd), "\n") p = subprocess.Popen(target_cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, - env=env, universal_newlines=True) + universal_newlines=True) while p.poll() == None: ps = subprocess.run(["ps", "-F", "--ppid", str(p.pid)], stdout=subprocess.PIPE) -- cgit v1.2.3