aboutsummaryrefslogtreecommitdiff
blob: 6f50d7aba8857c181787869ace120977e1bb4995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# test_dobin.py -- Portage Unit Testing Functionality
# Copyright 2007-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

from portage.tests.bin.setup_env import BinTestCase, dobin, xexists_in_D

class DoBin(BinTestCase):
	def testDoBin(self):
		self.init()
		try:
			dobin("does-not-exist", 1)
			xexists_in_D("does-not-exist")
			xexists_in_D("/bin/does-not-exist")
			xexists_in_D("/usr/bin/does-not-exist")
		finally:
			self.cleanup()