Browse Source

!12194 Fix cache_admin return code with the new packaging method

From: @lixiachen
Reviewed-by: @robingrosman,@nsyca
Signed-off-by: @robingrosman
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
593dfba463
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