From 53abfdb666daf93dda3111988b9c722a4b7e91dc Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 11 Feb 2020 15:44:56 +0100 Subject: add license header to benchmark.py --- src/benchmark.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/benchmark.py') diff --git a/src/benchmark.py b/src/benchmark.py index c96ff18..7fa6ad6 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -1,3 +1,21 @@ +# Copyright 2018-2020 Florian Fischer +# +# This file is part of allocbench. +# +# allocbench is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# allocbench is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with allocbench. If not, see . +"""Benchmark class providing general purpose implementation of required methods""" + import atexit from collections import namedtuple import errno -- cgit v1.2.3 From e300c8a75744702192b10a45b47dff714388cdaf Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 17 Feb 2020 12:15:15 +0100 Subject: fix preparation of non-server cmds --- src/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/benchmark.py') diff --git a/src/benchmark.py b/src/benchmark.py index 7fa6ad6..a8ec0c4 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -459,7 +459,7 @@ class Benchmark: # we measure the cmd -> prepare it accordingly if self.servers == []: - argv = self.prepare_argv(self.cmd, alloc, os.environ, substitutions) + argv = self.prepare_argv(self.cmd, os.environ, alloc, substitutions) # we measure the server -> run cmd as it is else: argv = self.prepare_argv(self.cmd, substitutions=substitutions, prepend=False) -- cgit v1.2.3