Explorar o código

Filter out in the set of expected entries, to allow for better analysis
of failed tests, and more accurate testing as well

Yentl Van Tendeloo %!s(int64=8) %!d(string=hai) anos
pai
achega
237a00f47d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      integration/utils.py

+ 2 - 0
integration/utils.py

@@ -172,6 +172,7 @@ def run_file(files, parameters, expected, wait=False):
                     assert val in e
                     if val not in e:
                         return False
+                    e.remove(val)
                 elif e is None:
                     # Skip output value
                     pass
@@ -269,6 +270,7 @@ def run_barebone(parameters, expected, interface="0", timeout=False, wait=False,
                     assert val in e
                     if val not in e:
                         return False
+                    e.remove(val)
                 elif e is None:
                     # Skip this input
                     pass