benchmark_full_command   A
last analyzed

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 os
2
import subprocess
3
import tempfile
4
import time
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