From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-f172.google.com (mail-ua0-f172.google.com [209.85.217.172]) by dpdk.org (Postfix) with ESMTP id EEF7C2C58 for ; Thu, 29 Mar 2018 20:55:59 +0200 (CEST) Received: by mail-ua0-f172.google.com with SMTP id l21so4245695uak.1 for ; Thu, 29 Mar 2018 11:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TSMI55SaJot9xPH+DrJqE2MxhBFNlMhuTUJrLcd5EKI=; b=D/iPZSHFwqecABhxLyZ56ARFOcWWwee20PWQ8VrwAAJTBY5TlhLDE03TpbX0eVV05U b46/d9cp3OegS/XK8xv7FjLGmUCDzTALt1SOx4GFZta+5/cAEMEf8TDOs/r6nd400R27 1Bg2SZ1eDL9142Y3Kitv52VhvyiN49fYvtncE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TSMI55SaJot9xPH+DrJqE2MxhBFNlMhuTUJrLcd5EKI=; b=F+YfXkpAICoZUDH5I7vh+jTLql/N2A/4KvEoXYlsWvPbBnNt+bRC7vlLP8JU94P1Xv 8X0+9ZFuycD61Ofqjr09ZI1CYsLjbiyvkWSQI5pykj0YbE7qjejPUWWZ9GJ83Q2RULw6 fmvhRa8YC5kSkKGel7IHNSa9+owVXrHsuIAeeFKroaNbWOQI8ZZpYkrqXn0IDrVXhpPR 292ksZQxv7Fm2uN9u3BP7Y99CAZaHpYh18cmAeRxtfEIh1NS57g6uuWYTbqmuFKnG6JC ZPJpdKe0fm6rRD8NHU0dW+neVOV4/nKW/DHxDtmxgnyHMACKNJS0ka9pnn+Gm4R3ugDj L4sg== X-Gm-Message-State: AElRT7HZOInH5YkcEVvqvXmcAb+mBIgc0SPXMeOSf9IpT4L4CMhRgfIP XqU7nphiqjEQoHgkTciE6KyzaLsYyXgRQ020/BcJCg== X-Google-Smtp-Source: AIpwx4/oOkAnNgMcMGbcGJ5vrJjg/FcNkJK/CaXwop0nKvU1X9nxBVWbak0qJlC50PAFAyu9Zop049fwTwvAt5mdRus= X-Received: by 10.176.36.141 with SMTP id i13mr6199863uan.180.1522349759319; Thu, 29 Mar 2018 11:55:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.23.133 with HTTP; Thu, 29 Mar 2018 11:55:58 -0700 (PDT) In-Reply-To: References: <20180320222041.17303-1-pmacarth@iol.unh.edu> <20180320222041.17303-5-pmacarth@iol.unh.edu> From: Patrick MacArthur Date: Thu, 29 Mar 2018 14:55:58 -0400 Message-ID: To: Ali Alnubani Cc: "dts@dpdk.org" , "dpdklab@iol.unh.edu" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dts] [PATCH for-next v2 4/5] tests/TestSuite_nic_single_core_perf: Use user-specified output dir X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2018 18:56:00 -0000 Hi, Ali, That was a rebase error which will be fixed in v3. Thanks, Patrick On Wed, Mar 28, 2018 at 12:19 PM, Ali Alnubani wrote: > Hi Patrick, > You are using os module w/o it being imported in this patch. > > Thanks, > Ali > >> -----Original Message----- >> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Patrick MacArthur >> Sent: Wednesday, March 21, 2018 12:21 AM >> To: dts@dpdk.org >> Cc: dpdklab@iol.unh.edu >> Subject: [dts] [PATCH for-next v2 4/5] tests/TestSuite_nic_single_core_perf: >> Use user-specified output dir >> >> The user can override the default output directory via a command line >> argument, but this script does not account for that. Fix the script to look up >> the output directory that the user requested and place the custom output >> file in that directory. >> >> Tested-by: Ali Alnubani >> Signed-off-by: Patrick MacArthur >> --- >> tests/TestSuite_nic_single_core_perf.py | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/tests/TestSuite_nic_single_core_perf.py >> b/tests/TestSuite_nic_single_core_perf.py >> index 21de93624cb4..bff763c129fa 100644 >> --- a/tests/TestSuite_nic_single_core_perf.py >> +++ b/tests/TestSuite_nic_single_core_perf.py >> @@ -41,6 +41,7 @@ from settings import HEADER_SIZE from pmd_output >> import PmdOutput from copy import deepcopy from prettytable import >> PrettyTable >> +import rst >> >> class TestNicSingleCorePerf(TestCase): >> >> @@ -244,7 +245,8 @@ class TestNicSingleCorePerf(TestCase): >> >> table_row.append(self.test_result[frame_size][descriptor][header[3]]) >> >> table_row.append(self.test_result[frame_size][descriptor][header[4]]) >> table.add_row(table_row) >> - file_to_save = open("output/%s_single_core_perf.txt" % self.nic, 'w') >> + file_to_save = open(os.path.join( >> + rst.path2Result, "%s_single_core_perf.txt" % self.nic), >> + 'w') >> file_to_save.write(str(table)) >> file_to_save.close() >> >> -- >> 2.14.1 > -- Patrick MacArthur Research and Development, High Performance Networking and Storage UNH InterOperability Laboratory