|
@@ -7,9 +7,13 @@ import reqif
|
7
|
7
|
|
8
|
8
|
import json
|
9
|
9
|
import os
|
|
10
|
+import sys
|
10
|
11
|
import platform
|
|
12
|
+try:
|
|
13
|
+ from platform import dist as dist
|
|
14
|
+except ImportError:
|
|
15
|
+ from distro import linux_distribution as dist
|
11
|
16
|
import getpass
|
12
|
|
-import sys
|
13
|
17
|
import subprocess
|
14
|
18
|
import imp
|
15
|
19
|
import xml.dom.minidom
|
|
@@ -224,7 +228,7 @@ def unittest_init(unittest_folder):
|
224
|
228
|
system_info['Architecture'] = platform.architecture()[0]
|
225
|
229
|
system_info['Machine'] = platform.machine()
|
226
|
230
|
system_info['Hostname'] = platform.node()
|
227
|
|
- system_info['Distribution'] = ' '.join(platform.dist())
|
|
231
|
+ system_info['Distribution'] = ' '.join(dist())
|
228
|
232
|
system_info['System'] = platform.system()
|
229
|
233
|
system_info['Kernel'] = platform.release() + ' (%s)' % platform.version()
|
230
|
234
|
system_info['Username'] = getpass.getuser()
|