## @file
# Utility functions and classes for BaseTools unit tests
#
# Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
##
# Import Modules
#
import base64
import os
import random
import shutil
import subprocess
import sys
import types
import unittest
tests = []
def GetBaseToolsPaths():
else:
return [
]
return
else:
print description, '(base64 encoded):'
print b64data
for binPath in BaseToolsBinPaths:
break
return bin
else: toolName = None
else: logFile = None
if logFile is not None:
else:
)
if logFile is None:
f.close()
return data
f.close()
f.close()
return ''.join(
])
for binPath in BaseToolsBinPaths:
else: