From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f227.google.com (mail-qt0-f227.google.com [209.85.216.227]) by dpdk.org (Postfix) with ESMTP id 4475A1B03F for ; Tue, 20 Feb 2018 18:26:18 +0100 (CET) Received: by mail-qt0-f227.google.com with SMTP id a9so17306703qtj.8 for ; Tue, 20 Feb 2018 09:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hRjFrQtXEjVpcssR8TwCTSWQjl2HYyTUIxxIuE7dkA4=; b=SAqS0+HMc+SNTnrFSW9EHDH+/ZVacnU/yLSOLZjr/mWDS07aXuAQZokn1MnSxT43DQ bUDKLGPNz9MU2pQS5U6nEmz75ZSP/QGHFkKNBW9G0WQY5UgPI9wIqMWI7xwTP/Hs9uDN LmplrCoA5b5QosH5fnF6O7bC0LEQFeCtE8ups= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hRjFrQtXEjVpcssR8TwCTSWQjl2HYyTUIxxIuE7dkA4=; b=GBm5QUuwgaOrQf7t8iBKgWhvPY6auDnBj5ocgwXBxfooeySIykt17mHmnfabtmyubq DdtMdAJizTE1iyc1MPwinpXsHqzKsOaD9C/JoTu9PKWu0rnL2ktz8Ou7l+oeX1f+PjpX tULvJL7X7HKmWU2xMzVTtDoQDrZZqLkxR/AmMGpLI5Jj3CgMrlPLvOAoUOl5Dc/TE9s6 1ymPl5CZ6LfEsAY1jwHJZ53uNZSQl2QCX1VqHXOlxB/b/P1EN6cl8bCva3ghfFqrE3LJ iC7kG5YjMlkZmbysj6MihzKFNP0rbkl2qeheB8Wyn9BCGxgSwpOILlSBHMs1Fd8JncZO BnHQ== X-Gm-Message-State: APf1xPA/CO182VQFeBRpYzkhS95OjyQhTzgKNZVG4eV/6TZO3rtb2x7G SDf4C2dYLIBIMeRYWiBKVIcWFCStDabWvGPFnJDCdMHWAnACyPdb46CGzRwSfXBN65agHuNXZd1 LCe6yKqSR6FlMw2XQb5lgxAToTo0Yc18N7T3wNzNyk9uWnMheWErdn8pTBZZgD3WzGwtUB6LJZw == X-Google-Smtp-Source: AH8x227qYznUQN2FRi+ZlslXNSpsTxKU/WycSdC1TUA7nGAww8+LzQyU3LezdLZIpvean2Z4hshA4fZIe5Vl X-Received: by 10.237.35.10 with SMTP id h10mr568044qtc.147.1519147577652; Tue, 20 Feb 2018 09:26:17 -0800 (PST) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id d19sm2511762qkg.11.2018.02.20.09.26.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 09:26:17 -0800 (PST) X-Relaying-Domain: iol.unh.edu Received: from groose.iol.unh.edu (unknown [IPv6:2606:4100:3880:1240:948e:929b:6d8b:f08a]) by postal.iol.unh.edu (Postfix) with ESMTP id 1B9976132CA0; Tue, 20 Feb 2018 12:26:17 -0500 (EST) From: Patrick MacArthur To: dts@dpdk.org Cc: pmacarth@iol.unh.edu, dpdklab@iol.unh.edu Date: Tue, 20 Feb 2018 12:26:10 -0500 Message-Id: <20180220172612.11973-5-pmacarth@iol.unh.edu> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180220172612.11973-1-pmacarth@iol.unh.edu> References: <20180220172612.11973-1-pmacarth@iol.unh.edu> Subject: [dts] [PATCH for-next 4/6] 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: Tue, 20 Feb 2018 17:26:18 -0000 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