diff options
author | hexcoder <hexcoder-@users.noreply.github.com> | 2020-05-14 20:32:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 20:32:04 +0200 |
commit | 94a1d4d3ac423f8f7252ec6a0e52f18ff0f02d08 (patch) | |
tree | 52ce1f1eb621d255a86ee12527ae39c6be3b419d /test | |
parent | a3392007cd7cac492e746e0e7d989355d9ae21dd (diff) | |
download | afl++-94a1d4d3ac423f8f7252ec6a0e52f18ff0f02d08.tar.gz |
test unicornafl: copy from build script
Diffstat (limited to 'test')
-rwxr-xr-x | test/test.sh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/test.sh b/test/test.sh index 24b80f03..bf01cb6e 100755 --- a/test/test.sh +++ b/test/test.sh @@ -886,20 +886,13 @@ test -d ../unicorn_mode/unicornafl && { EASY_INSTALL_FOUND=0 for PYTHON in $PYTHONS ; do - # work around for installs with executable easy_install - MYPYTHONPATH=`${PYTHON} -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p;}'` - for PATHCANDIDATE in \ - "dist-packages/" \ - "site-packages/" - do - if [ -e "${MYPYTHONPATH}/${PATHCANDIDATE}/easy_install.py" ] ; then + if $PYTHON -c "help('modules');" 2>/dev/null | grep -q easy_install ; then EASY_INSTALL_FOUND=1 PY=$PYTHON break - fi - done + fi done if [ "0" = $EASY_INSTALL_FOUND ]; then |