Deleted Added
sdiff udiff text old ( 13851:a71317af0ac2 ) new ( 14140:1e197b8006e2 )
full compact
1# Copyright (c) 2017 Mark D. Hill and David A. Wood
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 15 unchanged lines hidden (view full) ---

24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Sean Wilson
28
29import os
30import tempfile
31import shutil
32
33from testlib.fixture import Fixture, globalfixture
34from testlib.config import config, constants
35from testlib.helper import log_call, cacheresult, joinpath, absdirpath
36import testlib.log as log
37
38
39class VariableFixture(Fixture):

--- 14 unchanged lines hidden (view full) ---

54 def teardown(self, testitem):
55 if self.path is not None:
56 shutil.rmtree(self.path)
57
58 def skip_cleanup(self):
59 # Set path to none so it's not deleted
60 self.path = None
61
62
63class SConsFixture(Fixture):
64 '''
65 Fixture will wait until all SCons targets are collected and tests are
66 about to be ran, then will invocate a single instance of SCons for all
67 targets.
68
69 :param directory: The directory which scons will -C (cd) into before
70 executing. If None is provided, will choose the config base_dir.

--- 225 unchanged lines hidden ---