# HG changeset patch # User Jon Chatten # Date 1269531269 0 # Node ID 4c70cc18da3af6474f895862d758c49850292c83 # Parent 554cc189839f67bec89cce9b9b521715d5d2d3a3 Code review updates. diff -r 554cc189839f -r 4c70cc18da3a sbsv2/raptor/test/unit_suite/generic_path_unit.py --- a/sbsv2/raptor/test/unit_suite/generic_path_unit.py Tue Mar 23 17:11:09 2010 +0000 +++ b/sbsv2/raptor/test/unit_suite/generic_path_unit.py Thu Mar 25 15:34:29 2010 +0000 @@ -1,5 +1,5 @@ # -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). # All rights reserved. # This component and the accompanying materials are made available # under the terms of the License "Eclipse Public License v1.0" diff -r 554cc189839f -r 4c70cc18da3a sbsv2/raptor/test/unit_suite/raptor_data_unit.py --- a/sbsv2/raptor/test/unit_suite/raptor_data_unit.py Tue Mar 23 17:11:09 2010 +0000 +++ b/sbsv2/raptor/test/unit_suite/raptor_data_unit.py Thu Mar 25 15:34:29 2010 +0000 @@ -36,8 +36,8 @@ self.envStack[name] = os.environ[name] os.environ[name] = value - def isWin32(self): - return sys.platform.lower().startswith("win") + def isWin(self): + return 'win' in raptor.hostplatform def RestoreEnv(self, name): # put environment back to its state before SetEnv @@ -410,7 +410,7 @@ except Exception, e: exceptionText = str(e) - if self.isWin32(): + if self.isWin(): self.assertTrue(value) self.assertFalse(' ' in value) else: @@ -424,7 +424,7 @@ except Exception, e: exceptionText = str(e) - if self.isWin32(): + if self.isWin(): self.assertTrue(value) self.assertFalse(' ' in value) else: