Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 890eb76 commit fcbdc71Copy full SHA for fcbdc71
1 file changed
adt-runscript.py
@@ -42,7 +42,7 @@ class Test:
42
def __init__(self, name):
43
self.name = name
44
self.depends = []
45
- def add_depends(self, d):
+ def parse_depends(self, d):
46
self.depends = set([x.split()[0] for x in d.split(",") if "libc" not in x])
47
48
@@ -96,11 +96,15 @@ def add_depends(self, d):
96
if k == "Depends":
97
assert gottest
98
if v == "@":
99
- tests[-1].add_depends(", ".join(loc_pkg_names))
+ tests[-1].depends = list(loc_pkg_names)
100
else:
101
- tests[-1].add_depends(v)
+ tests[-1].parse_depends(v)
102
gottest = False
103
104
+# no Depends means implicit @
105
+for t in tests:
106
+ if not t.depends:
107
+ t.depends = list(loc_pkg_names)
108
109
# copy the local pacakges
110
for pkg in loc_pkg_paths:
0 commit comments