MCPcopy Create free account
hub / github.com/apache/solr / is_in_list

Function is_in_list

dev-tools/scripts/smokeTestRelease.py:592–601  ·  view source on GitHub ↗
(in_folder, files, indent=4)

Source from the content-addressed store, hash-verified

590 os.chdir(destDir)
591 print(' unpack %s...' % artifact)
592 unpackLogFile = '%s/solr-unpack-%s.log' % (tmpDir, artifact)
593 expected = artifact
594 if artifact.endswith('.tar.gz') or artifact.endswith('.tgz'):
595 expected = artifact[:artifact.find('.t')]
596 expected = expected.replace("-src", "") # Remove when the src tgz subdirectory has "-src" appended
597 run('tar xzf %s/%s' % (tmpDir, artifact), unpackLogFile)
598
599 # make sure it unpacks to proper subdir
600 l = os.listdir(destDir)
601 if l != [expected]:
602 raise RuntimeError('unpack produced entries %s; expected only %s' % (l, expected))
603
604 return '%s/%s' % (destDir, expected)

Callers 1

verifyBinaryUnpackedFunction · 0.85

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…