Passed
Push — master ( 21ae0e...e3a2b6 )
by Matěj
01:53 queued 11s
created

benchmark_full_command   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 19
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 0
1
import time
2
import os
3
import subprocess
4
import tempfile
5
import uuid
6
7
print("Start process all rules")
8
src = os.path.join(tempfile.gettempdir(), str(uuid.uuid4()))
9
10
start_time_all_rules = time.time()
11
12
subprocess.check_call(['python3',
13
                       '-m',
14
                       'oval_graph.command_line',
15
                       'arf-to-graph',
16
                       '--all',
17
                       '-o',
18
                       src,
19
                       'tests/test_data/ssg-fedora-ds-arf.xml',
20
                       '.'
21
                       ])
22
23
print("--- %s seconds ---" % (time.time() - start_time_all_rules))
24