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

Side by Side Diff: pydir/utils.py

Issue 2145063003: Updates in preparation of wrapper script (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: minor fix to test Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/szrt_asan.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import os 1 import os
2 import subprocess 2 import subprocess
3 import sys 3 import sys
4 4
5 def GetObjcopyCmd(): 5 def GetObjcopyCmd():
6 """Return a suitable objcopy command.""" 6 """Return a suitable objcopy command."""
7 return 'arm-nacl-objcopy' 7 return 'arm-nacl-objcopy'
8 8
9 def GetObjdumpCmd(): 9 def GetObjdumpCmd():
10 """Return a suitable objdump command.""" 10 """Return a suitable objdump command."""
11 return 'arm-nacl-objdump' 11 return 'arm-nacl-objdump'
12 12
13 def shellcmd(command, echo=True): 13 def shellcmd(command, echo=True):
14 if not isinstance(command, str): 14 if not isinstance(command, str):
15 command = ' '.join(command) 15 command = ' '.join(command)
16 16
17 if echo: 17 if echo:
18 print >> sys.stderr, '[cmd]' 18 print >> sys.stderr, '[cmd]'
19 print >> sys.stderr, command 19 print >> sys.stderr, command
20 print >> sys.stderr 20 print >> sys.stderr
21 21
(...skipping 14 matching lines...) Expand all
36 return os.sep.join(path_list[:last_index]) 36 return os.sep.join(path_list[:last_index])
37 37
38 def get_sfi_string(args, sb_ret, nonsfi_ret, native_ret): 38 def get_sfi_string(args, sb_ret, nonsfi_ret, native_ret):
39 """Return a value depending on args.sandbox and args.nonsfi.""" 39 """Return a value depending on args.sandbox and args.nonsfi."""
40 if args.sandbox: 40 if args.sandbox:
41 assert(not args.nonsfi) 41 assert(not args.nonsfi)
42 return sb_ret 42 return sb_ret
43 if args.nonsfi: 43 if args.nonsfi:
44 return nonsfi_ret 44 return nonsfi_ret
45 return native_ret 45 return native_ret
OLDNEW
« no previous file with comments | « no previous file | runtime/szrt_asan.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698