python-pefile/pefile-tests.sh
Yash Mankad d541950fba Add missing gating files for c10s
Resolves: RHEL-56100

Signed-off-by: Yash Mankad <ymankad@redhat.com>
2024-08-27 09:03:22 -04:00

16 lines
329 B
Bash

#!/bin/bash
# config
COMMIT="64524fa8a041"
REMOTE="https://github.com/erocarrera/pefile-tests"
# clone repo and run tests
TESTDIR="$(mktemp --directory ${TMPDIR-/var/tmp}/test-XXXXXXXX)"
trap 'cd /; rm -rf "$TESTDIR"' EXIT
cd "$TESTDIR"
set -ex
git clone $REMOTE repo
cd repo
git checkout "$COMMIT"
pytest tests/pefile_test.py