Debian Codegraph @

testrunner/scratchbox_runner.py

raw symbols SCIP
1
2 """ This is a very hackish runner for cross compilation toolchain scratchbox.
3 Later on we might come out with some general solution
4 """
5
6 import os
7
8 def args_for_scratchbox(cwd, args):
9 return ['/scratchbox/login', '-d', str(cwd)] + args
10
11 def run_scratchbox(args, cwd, out, timeout=None):
12 return run(args_for_scratchbox(cwd, args), cwd, out, timeout)
13
14 def dry_run_scratchbox(args, cwd, out, timeout=None):
15 return dry_run(args_for_scratchbox(cwd, args), cwd, out, timeout)
16
17 if __name__ == '__main__':
18 import runner
19 # XXX hack hack hack
20 dry_run = runner.dry_run
21 run = runner.run
22
23 runner.dry_run = dry_run_scratchbox
24 runner.run = run_scratchbox
25
26 import sys
27 runner.main(sys.argv)