summaryrefslogtreecommitdiff
path: root/validation/test/P2P_throughput
diff options
context:
space:
mode:
authorJean-Philippe NOEL2013-02-06 18:37:27 +0100
committerJean-Philippe NOEL2013-02-13 12:01:53 +0100
commit0fac6cd6e4d3496925d1d55ffa7f037bb7ff28f3 (patch)
tree9c7916fb818d656ca23be315f7f6fbcde7cd7b30 /validation/test/P2P_throughput
parenta8b0e35c23a25134afdc73f832a80357381c7e63 (diff)
validation/test/P2P_throughput: cleaner copy of the config file, refs #3760
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()