Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: mojo/tools/mojodb

Issue 1164023004: Rename skydb to mojodb (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Update docs Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/js/show_image.js ('k') | sky/HACKING.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mojodb
diff --git a/sky/tools/skydb b/mojo/tools/mojodb
similarity index 98%
rename from sky/tools/skydb
rename to mojo/tools/mojodb
index cb33ae731e7a6ae09e8af8e06df70f82d87e5c56..a3df6a4e18fe758ccebe3fb37a46e6ea8aae81fe 100755
--- a/sky/tools/skydb
+++ b/mojo/tools/mojodb
@@ -3,11 +3,16 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import os
+import sys
+
+# We should remove the skypy dependencies from this script.
+sys.path.append(os.path.abspath(os.path.join(__file__, '../../../sky/tools')))
+
from skypy.skyserver import SkyServer
import argparse
import json
import logging
-import os
import pipes
import re
import requests
@@ -15,7 +20,6 @@ import signal
import skypy.paths
import StringIO
import subprocess
-import sys
import time
import urlparse
import platform
@@ -35,7 +39,7 @@ ANDROID_PACKAGE = "org.chromium.mojo.shell"
ANDROID_ACTIVITY = "%s/.MojoShellActivity" % ANDROID_PACKAGE
ANDROID_APK_NAME = 'MojoShell.apk'
-PID_FILE_PATH = "/tmp/skydb.pids"
+PID_FILE_PATH = "/tmp/mojodb.pids"
CACHE_LINKS_PATH = '/tmp/mojo_cache_links'
SRC_ROOT = skypy.paths.Paths('ignored').src_root
@@ -209,7 +213,7 @@ class SkyDebugger(object):
if not shell_found:
print "Are you sure you sure that's a valid build_dir location?"
- print "See skydb start --help for more info"
+ print "See mojodb start --help for more info"
sys.exit(2)
if is_android and args.gdb and not 'is_debug' in gn_args:
@@ -308,7 +312,7 @@ class SkyDebugger(object):
# We could just run gdb_attach_command here, but when I do that
# it auto-suspends in my zsh. Unclear why.
# self.gdb_attach_command(args)
- print "Run 'skydb gdb_attach' to attach."
+ print "Run 'mojodb gdb_attach' to attach."
def _kill_if_exists(self, key, name):
pid = self.pids.pop(key, None)
@@ -601,7 +605,7 @@ class SkyDebugger(object):
stop_parser.set_defaults(func=self.stop_command)
pids_parser = subparsers.add_parser('pids',
- help='dump the current skydb pids file')
+ help='dump the current mojodb pids file')
pids_parser.set_defaults(func=self.pids_command)
logcat_parser = subparsers.add_parser('logcat',
« no previous file with comments | « examples/js/show_image.js ('k') | sky/HACKING.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698