Skip to content

Travis fixes (fix test_ptrack_vacuum_full test) #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 24, 2021
Merged
Prev Previous commit
Next Next commit
[travis] fix test_ptrack_vacuum_full #4
  • Loading branch information
kulaginm committed Oct 23, 2021
commit 6a5d07926550767a5f5b382d493d4026732bea67
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ install:
- docker-compose build

script:
# - docker-compose run $(bash <(curl -s https://codecov.io/env)) tests
- docker-compose run tests
- docker-compose run $(bash <(curl -s https://codecov.io/env)) tests

notifications:
email:
Expand Down
13 changes: 2 additions & 11 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ cd ..
echo "############### Compiling and installing ptrack extension"

# XXX: Hackish way to make possible to run tap tests
#mkdir $PG_SRC/contrib/ptrack
#cp -R t $PG_SRC/contrib/ptrack/
ln -s `pwd` $PG_SRC/contrib/ptrack

make USE_PGXS=1 PG_CPPFLAGS="-coverage" SHLIB_LINK="-coverage" -C $PG_SRC/contrib/ptrack/ install
Expand All @@ -97,16 +95,9 @@ if [ "$TEST_CASE" = "tap" ]; then
fi

else
# Show kernel params (used for debugging -- probackup tests)
echo "############### kernel params:"
cat /proc/sys/kernel/yama/ptrace_scope
sysctl kernel.yama.ptrace_scope=0
cat /proc/sys/kernel/yama/ptrace_scope
sudo sysctl kernel.yama.ptrace_scope=0
cat /proc/sys/kernel/yama/ptrace_scope
# Set kernel params (used for debugging -- probackup tests)
echo "############### setting kernel params:"
sudo sh -c 'echo 0 > /proc/sys/kernel/yama/ptrace_scope'
cat /proc/sys/kernel/yama/ptrace_scope
ls -l /usr/sbin

# Build and install pg_probackup
echo "############### Compiling and installing pg_probackup"
Expand Down