Skip to content

Commit 04f4adb

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Add --log trace.
1 parent 48ee523 commit 04f4adb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

helpers/_tns_lib.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def PlatformAdd(platform=None, frameworkPath=None, path=None, symlink=False, ass
101101

102102
return output
103103

104-
def Prepare(path=None, platform=None, assertSuccess=True):
104+
def Prepare(path=None, platform=None, logTrace=False, assertSuccess=True):
105105

106106
command = tnsPath + " prepare"
107107

@@ -111,6 +111,9 @@ def Prepare(path=None, platform=None, assertSuccess=True):
111111
if path is not None:
112112
command += " --path {0}".format(path)
113113

114+
if logTrace:
115+
command += " --log trace"
116+
114117
output = runAUT(command)
115118

116119
if assertSuccess:
@@ -141,7 +144,7 @@ def LibraryAdd(platform=None, libPath=None, path=None, assertSuccess=True):
141144

142145
return output
143146

144-
def Build(platform=None, mode=None, path=None, assertSuccess=True):
147+
def Build(platform=None, mode=None, path=None, logTrace=False, assertSuccess=True):
145148

146149
command = tnsPath + " build"
147150

@@ -154,6 +157,9 @@ def Build(platform=None, mode=None, path=None, assertSuccess=True):
154157
if path is not None:
155158
command += " --path {0}".format(path)
156159

160+
if logTrace:
161+
command += " --log trace"
162+
157163
output = runAUT(command)
158164

159165
if assertSuccess:

tests/plugins_osx_pods.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_001_PluginAdd_Pod_GoogleMaps_Before_PlatformAdd_iOS(self):
3535
assert ("googlesdk" in output)
3636

3737
PlatformAdd(platform="ios", frameworkPath=iosRuntimeSymlinkPath, path="TNS_App", symlink=True)
38-
output = Prepare(platform="ios", path="TNS_App")
38+
output = Prepare(platform="ios", path="TNS_App", logTrace=True)
3939
assert ("Installing pods..." in output)
4040
assert ("Successfully prepared plugin googlesdk for ios." in output)
4141

0 commit comments

Comments
 (0)