summaryrefslogtreecommitdiff
path: root/validation/test/P2P_throughput
diff options
context:
space:
mode:
Diffstat (limited to 'validation/test/P2P_throughput')
-rw-r--r--validation/test/P2P_throughput/P2P_throughput.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/validation/test/P2P_throughput/P2P_throughput.py b/validation/test/P2P_throughput/P2P_throughput.py
index ed4d72e9a2..db6f023384 100644
--- a/validation/test/P2P_throughput/P2P_throughput.py
+++ b/validation/test/P2P_throughput/P2P_throughput.py
@@ -10,6 +10,7 @@ import os
import numpy
import math
import sys
+import shutil
import validlib.attenuator as attenuator
import validlib.waveform_generator as waveform_generator
@@ -87,8 +88,10 @@ def report(config, config_file):
description."""
update_config(config)
+ reports_directory = get_reports_directory()
+
# Build the picture of the test bench
- fig_name = dia_utils.dia2eps(__file__, get_reports_directory())
+ fig_name = dia_utils.dia2eps(__file__, reports_directory)
# Make all the measurements
if config["make_measurements"] == True:
@@ -96,7 +99,7 @@ def report(config, config_file):
write_bench_data()
#We dump the file and not the config, since it may be more
#readable and may contain some useful comments
- subprocess.check_call(["cp", config_file, get_reports_directory()])
+ shutil.copy(config_file, reports_directory)
iperf.clean_traces()
t0 = time.time()
estimated_min = measurements_estimated_time_min()