mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge Set (instead of compare) exresult
Interestingly this accidentally worked because `if exresult` is true for both a non-empty string ("PASS") as well as a real `True` value. Found by Mark Grassi as part of https://gitlab.com/apparmor/apparmor/-/merge_requests/906 I propose this patch for all branches. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/907 Approved-by: Jon Tourville <jon.tourville@canonical.com> Merged-by: Christian Boltz <apparmor@cboltz.de> (cherry picked from commitc06ea77445
)5a2fb856
Set (instead of compare) exresult
This commit is contained in:
parent
0ead606d9e
commit
ae1c30e337
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ def parse_test_profiles(file_with_path):
|
|||
if line.startswith('#=EXRESULT '):
|
||||
exresult = line.split()[1]
|
||||
if exresult == 'PASS':
|
||||
exresult == True
|
||||
exresult = True
|
||||
exresult_found = True
|
||||
elif exresult == 'FAIL':
|
||||
exresult = False
|
||||
|
|
Loading…
Add table
Reference in a new issue