Skip to content

Commit 7ff6e2e

Browse files
authored
v0.5.1
Fixed few tests, thanks to Przemek A. for pointing it out Changed the fonts used in the report to look more professional Added a pie chart in the report showing result of tests
1 parent be58bcf commit 7ff6e2e

File tree

6 files changed

+148
-56
lines changed

6 files changed

+148
-56
lines changed

linux/fonts/SF-Mono-Heavy.ttf

191 KB
Binary file not shown.

linux/fonts/SF-Pro-Rounded-Bold.ttf

1.87 MB
Binary file not shown.

linux/fonts/SF-Pro-Rounded-Heavy.ttf

1.87 MB
Binary file not shown.

linux/modules/argumentParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
formatter_class=RawTextHelpFormatter)
1111

1212
# SeBAz version
13-
parser.version = '%(prog)s v0.5.0'
13+
parser.version = '%(prog)s v0.5.1'
1414

1515
# optional arguments
1616

linux/modules/benchmarks.py

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4035,6 +4035,7 @@ def _3_5_1_2_ind():
40354035
return_value.append('PASS')
40364036
return_value.append(
40374037
success + '\nFollowing uses ipv6\n' + result_success)
4038+
flag += 1
40384039
else:
40394040
return_value.append(
40404041
'IPv6 output accpet destination not ::/0')
@@ -4075,6 +4076,11 @@ def _3_5_1_2_ind():
40754076
success + '\nFollowing uses ipv6\n' + result_success)
40764077
flag += 1
40774078
break
4079+
if not flag:
4080+
return_value.append('IPv6 output loopback no config')
4081+
return_value.append('FAIL')
4082+
return_value.append(
4083+
success + '\nFollowing uses ipv6\n' + result_success)
40784084
else:
40794085
return_value.append('IPv6 output loopback no config')
40804086
return_value.append('FAIL')
@@ -4319,6 +4325,7 @@ def _3_5_2_2_ind():
43194325
return_value.append('PASS')
43204326
return_value.append(
43214327
success + result_success)
4328+
flag += 1
43224329
else:
43234330
return_value.append(
43244331
'fw output accpet destination not 0.0.0.0/0')
@@ -4358,6 +4365,10 @@ def _3_5_2_2_ind():
43584365
return_value.append(success + result_success)
43594366
flag += 1
43604367
break
4368+
if not flag:
4369+
return_value.append('fw output loopback no config')
4370+
return_value.append('FAIL')
4371+
return_value.append(success + result_success)
43614372
else:
43624373
return_value.append('fw output loopback no config')
43634374
return_value.append('FAIL')
@@ -5669,8 +5680,7 @@ def _5_1_8_ind():
56695680
else:
56705681
return_value.append('/etc/cron.allow not configured')
56715682
return_value.append('FAIL')
5672-
return_value.append(result_error + '\n' + result_success +
5673-
'\nstat /etc/at.allow returned the following\n' + success)
5683+
return_value.append(result_error + '\nstat /etc/at.allow returned the following\n' + success)
56745684
else:
56755685
return_value.append('/etc/cron.allow not found')
56765686
return_value.append('FAIL')
@@ -9935,6 +9945,7 @@ def _3_5_1_2_deb():
99359945
return_value.append('PASS')
99369946
return_value.append(
99379947
success + result_success)
9948+
flag += 1
99389949
else:
99399950
return_value.append(
99409951
'fw output accpet destination not 0.0.0.0/0')
@@ -9974,6 +9985,10 @@ def _3_5_1_2_deb():
99749985
return_value.append(success + result_success)
99759986
flag += 1
99769987
break
9988+
if not flag:
9989+
return_value.append('fw output loopback no config')
9990+
return_value.append('FAIL')
9991+
return_value.append(success + result_success)
99779992
else:
99789993
return_value.append('fw output loopback no config')
99799994
return_value.append('FAIL')
@@ -10207,6 +10222,7 @@ def _3_5_2_2_deb():
1020710222
return_value.append('PASS')
1020810223
return_value.append(
1020910224
success + '\nFollowing uses ipv6\n' + result_success)
10225+
flag += 1
1021010226
else:
1021110227
return_value.append(
1021210228
'IPv6 output accpet destination not ::/0')
@@ -10247,6 +10263,11 @@ def _3_5_2_2_deb():
1024710263
success + '\nFollowing uses ipv6\n' + result_success)
1024810264
flag += 1
1024910265
break
10266+
if not flag:
10267+
return_value.append('IPv6 output loopback no config')
10268+
return_value.append('FAIL')
10269+
return_value.append(
10270+
success + '\nFollowing uses ipv6\n' + result_success)
1025010271
else:
1025110272
return_value.append('IPv6 output loopback no config')
1025210273
return_value.append('FAIL')
@@ -11471,8 +11492,7 @@ def _5_1_8_deb():
1147111492
else:
1147211493
return_value.append('/etc/cron.allow not configured')
1147311494
return_value.append('FAIL')
11474-
return_value.append(result_error + '\n' + result_success +
11475-
'\nstat /etc/at.allow returned the following\n' + success)
11495+
return_value.append(result_error + '\nstat /etc/at.allow returned the following\n' + success)
1147611496
else:
1147711497
return_value.append('/etc/cron.allow not found')
1147811498
return_value.append('FAIL')
@@ -16212,6 +16232,7 @@ def _3_5_4_1_2_ubu():
1621216232
return_value.append('PASS')
1621316233
return_value.append(
1621416234
success + result_success)
16235+
flag += 1
1621516236
else:
1621616237
return_value.append(
1621716238
'fw output accpet destination not 0.0.0.0/0')
@@ -16251,6 +16272,10 @@ def _3_5_4_1_2_ubu():
1625116272
return_value.append(success + result_success)
1625216273
flag += 1
1625316274
break
16275+
if not flag:
16276+
return_value.append('fw output loopback no config')
16277+
return_value.append('FAIL')
16278+
return_value.append(success + result_success)
1625416279
else:
1625516280
return_value.append('fw output loopback no config')
1625616281
return_value.append('FAIL')
@@ -16484,6 +16509,7 @@ def _3_5_4_2_2_ubu():
1648416509
return_value.append('PASS')
1648516510
return_value.append(
1648616511
success + '\nFollowing uses ipv6\n' + result_success)
16512+
flag += 1
1648716513
else:
1648816514
return_value.append(
1648916515
'IPv6 output accpet destination not ::/0')
@@ -16524,6 +16550,11 @@ def _3_5_4_2_2_ubu():
1652416550
success + '\nFollowing uses ipv6\n' + result_success)
1652516551
flag += 1
1652616552
break
16553+
if not flag:
16554+
return_value.append('IPv6 output loopback no config')
16555+
return_value.append('FAIL')
16556+
return_value.append(
16557+
success + '\nFollowing uses ipv6\n' + result_success)
1652716558
else:
1652816559
return_value.append('IPv6 output loopback no config')
1652916560
return_value.append('FAIL')
@@ -17733,13 +17764,11 @@ def _5_1_8_ubu():
1773317764
else:
1773417765
return_value.append('/etc/at.allow not found')
1773517766
return_value.append('FAIL')
17736-
return_value.append(result_error + '\n' + result_success +
17737-
'\nstat /etc/at.allow returned the following\n' + error)
17767+
return_value.append(result_error + '\nstat /etc/at.allow returned the following\n' + error)
1773817768
else:
1773917769
return_value.append('/etc/cron.allow not configured')
1774017770
return_value.append('FAIL')
17741-
return_value.append(result_error + '\n' + result_success +
17742-
'\nstat /etc/at.allow returned the following\n' + success)
17771+
return_value.append(result_error + '\nstat /etc/at.allow returned the following\n' + success)
1774317772
else:
1774417773
return_value.append('/etc/cron.allow not found')
1774517774
return_value.append('FAIL')

0 commit comments

Comments
 (0)