Browse Source

pass return code to the upper layer

tags/v1.2.0-rc1
Lixia Chen 5 years ago
parent
commit
e5023e5c44
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mindspore/dataset/engine/cache_admin.py

+ 2
- 1
mindspore/dataset/engine/cache_admin.py View File

@@ -18,6 +18,7 @@ This is the entrance to start the cache service

import os
import stat
import subprocess
import sys
import mindspore

@@ -30,4 +31,4 @@ def main():
os.chmod(cache_admin, stat.S_IRWXU)
os.chmod(cache_server, stat.S_IRWXU)
cmd = cache_admin + " " + " ".join(sys.argv[1:])
os.system(cmd)
sys.exit(subprocess.call(cmd, shell=True))

Loading…
Cancel
Save