mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-08-24 12:43:19 -04:00
Signed-off-by: lifansheng <lifansheng1@huawei.com>
On branch master Your branch is up to date with 'origin/master'.
This commit is contained in:
@@ -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
@@ -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
@@ -96,7 +96,7 @@ function toAscllString(uriStr:any) {
|
||||
}
|
||||
}
|
||||
|
||||
function createNewUri(uriStr:string) {
|
||||
function createNewUri(uriStr : string) {
|
||||
return new URI(uriStr);
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -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__':
|
||||
|
||||
|
||||
Reference in New Issue
Block a user