projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30633be
)
Fix the test so that it can run inside a sandbox.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 21 Jun 2007 12:16:49 +0000
(12:16 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 21 Jun 2007 12:16:49 +0000
(12:16 -0000)
svn path=/main/trunk/; revision=6915
pym/portage/tests/ebuild/test_spawn.py
patch
|
blob
|
history
diff --git
a/pym/portage/tests/ebuild/test_spawn.py
b/pym/portage/tests/ebuild/test_spawn.py
index 66e8f9ea7d8ff14e8c756e0fc1352e474a598566..c694566f218056fc376192b94354f95c85373a89 100644
(file)
--- a/
pym/portage/tests/ebuild/test_spawn.py
+++ b/
pym/portage/tests/ebuild/test_spawn.py
@@
-16,8
+16,10
@@
class SpawnTestCase(TestCase):
os.close(fd)
null_fd = os.open('/dev/null', os.O_RDWR)
test_string = 2 * "blah blah blah\n"
+ # use free=1 to disable sandbox so that this test can run inside a
+ # sandbox (sandbox in sandbox is not currently allowed)
spawn("echo -n '%s'" % test_string, settings, logfile=logfile,
- fd_pipes={0:sys.stdin.fileno(), 1:null_fd, 2:null_fd})
+ f
ree=1, f
d_pipes={0:sys.stdin.fileno(), 1:null_fd, 2:null_fd})
os.close(null_fd)
f = open(logfile, 'r')
log_content = f.read()