diff options
Diffstat (limited to 'llvm_tools/get_llvm_hash.py')
-rwxr-xr-x | llvm_tools/get_llvm_hash.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm_tools/get_llvm_hash.py b/llvm_tools/get_llvm_hash.py index 4ced2f4b..4a48635d 100755 --- a/llvm_tools/get_llvm_hash.py +++ b/llvm_tools/get_llvm_hash.py @@ -16,6 +16,7 @@ import requests import shutil import tempfile +from assert_not_in_chroot import VerifyOutsideChroot from cros_utils import command_executer from get_google3_llvm_version import LLVMVersion @@ -286,8 +287,13 @@ def main(): Parses the command line for the optional command line arguments. + + Raises: + AssertionError: The script was run inside the chroot. """ + VerifyOutsideChroot() + # Create parser and add optional command-line arguments. parser = argparse.ArgumentParser(description='Finds the LLVM hash.') parser.add_argument( |