Signed-off-by: lifansheng <lifansheng1@huawei.com>

On branch master
 Your branch is up to date with 'origin/master'.
This commit is contained in:
lifansheng
2021-10-26 17:56:14 +08:00
parent 5cbfc3476c
commit 0d96a72f0d
4 changed files with 21 additions and 8 deletions
+8 -3
View File
@@ -19,8 +19,12 @@ import subprocess
def run_command(cmd):
print(" ".join(cmd))
proc = subprocess.Popen(cmd)
proc.wait()
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, universal_newlines=True)
out, err = proc.communicate()
if out != "":
print(out)
exit(1)
if __name__ == '__main__':
@@ -42,4 +46,5 @@ node-v12.18.4-linux-x64/bin/node'
run_command(cmd)
cmd = ['rm', "-rf", './out']
run_command(cmd)
run_command(cmd)
exit(0)
+6 -2
View File
@@ -21,8 +21,12 @@ import subprocess
def run_command(cmd):
print(" ".join(cmd))
proc = subprocess.Popen(cmd)
proc.wait()
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, universal_newlines=True)
out, err = proc.communicate()
if out != "":
print(out)
exit(1)
if __name__ == '__main__':
+1 -1
View File
@@ -96,7 +96,7 @@ function toAscllString(uriStr:any) {
}
}
function createNewUri(uriStr:string) {
function createNewUri(uriStr : string) {
return new URI(uriStr);
}
+6 -2
View File
@@ -20,8 +20,12 @@ import subprocess
def run_command(cmd):
print(" ".join(cmd))
proc = subprocess.Popen(cmd)
proc.wait()
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, universal_newlines=True)
out, err = proc.communicate()
if out != "":
print(out)
exit(1)
if __name__ == '__main__':