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

Unified Diff: trunk/src/native_client_sdk/src/tools/lib/tests/get_shared_deps_test.py

Issue 238783004: Revert 263791 "Remove dependency of NaCl untarred toolchain from..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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
Index: trunk/src/native_client_sdk/src/tools/lib/tests/get_shared_deps_test.py
===================================================================
--- trunk/src/native_client_sdk/src/tools/lib/tests/get_shared_deps_test.py (revision 263903)
+++ trunk/src/native_client_sdk/src/tools/lib/tests/get_shared_deps_test.py (working copy)
@@ -14,17 +14,15 @@
LIB_DIR = os.path.dirname(SCRIPT_DIR)
TOOLS_DIR = os.path.dirname(LIB_DIR)
DATA_DIR = os.path.join(SCRIPT_DIR, 'data')
+CHROME_SRC = os.path.dirname(os.path.dirname(os.path.dirname(TOOLS_DIR)))
sys.path.append(LIB_DIR)
sys.path.append(TOOLS_DIR)
-import build_paths
+import getos
import get_shared_deps
-TOOLCHAIN_OUT = os.path.join(build_paths.OUT_DIR, 'sdk_tests', 'toolchain')
-NACL_X86_GLIBC_TOOLCHAIN = os.path.join(TOOLCHAIN_OUT, 'nacl_x86_glibc')
-
def StripDependencies(deps):
'''Strip the dirnames and version suffixes from
a list of nexe dependencies.
@@ -44,7 +42,9 @@
class TestGetNeeded(unittest.TestCase):
def setUp(self):
self.tempdir = None
- self.toolchain = NACL_X86_GLIBC_TOOLCHAIN
+ toolchain = os.path.join(CHROME_SRC, 'native_client', 'toolchain')
+ self.toolchain = os.path.join(toolchain, '%s_x86' % getos.GetPlatform(),
+ 'nacl_x86_glibc')
self.objdump = os.path.join(self.toolchain, 'bin', 'i686-nacl-objdump')
if os.name == 'nt':
self.objdump += '.exe'
« no previous file with comments | « trunk/src/native_client_sdk/src/test_all.py ('k') | trunk/src/native_client_sdk/src/tools/tests/create_nmf_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698