MCPcopy Create free account
hub / github.com/apache/impala / get_git_hash

Method get_git_hash

tests/comparison/leopard/impala_docker_env.py:166–175  ·  view source on GitHub ↗

Returns Git hash if the current commit.

(self)

Source from the content-addressed store, hash-verified

164 sleep(10)
165
166 def get_git_hash(self):
167 '''Returns Git hash if the current commit. '''
168 with settings(
169 warn_only=True,
170 host_string='{0}@{1}:{2}'.format(DOCKER_USER_NAME, self.host, self.ssh_port),
171 password=os.environ['DOCKER_PASSWORD']
172 ):
173 git_hash = retry(run)('cd {IMPALA_HOME} && git rev-parse --short HEAD'.format(
174 IMPALA_HOME=IMPALA_HOME))
175 return git_hash
176
177 def run_all(self):
178 with settings(

Callers 1

prepareMethod · 0.80

Calls 2

retryFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected