diff -Nru coz-profiler-0.2.2/debian/changelog coz-profiler-0.2.2/debian/changelog --- coz-profiler-0.2.2/debian/changelog 2020-09-02 16:53:33.000000000 +0000 +++ coz-profiler-0.2.2/debian/changelog 2020-09-05 09:17:25.000000000 +0000 @@ -1,3 +1,11 @@ +coz-profiler (0.2.2-2) unstable; urgency=medium + + [ Lluis Vilanova ] + * Adjusted autopkgtest checks to not fail when the kernel perf access + block them from running. + + -- Petter Reinholdtsen Sat, 05 Sep 2020 11:17:25 +0200 + coz-profiler (0.2.2-1) unstable; urgency=medium [ Lluis Vilanova ] diff -Nru coz-profiler-0.2.2/debian/tests/test-coz-run-ls coz-profiler-0.2.2/debian/tests/test-coz-run-ls --- coz-profiler-0.2.2/debian/tests/test-coz-run-ls 2020-09-02 16:24:05.000000000 +0000 +++ coz-profiler-0.2.2/debian/tests/test-coz-run-ls 2020-09-04 16:21:31.000000000 +0000 @@ -2,6 +2,15 @@ set -e +if [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt 2 ] ; then \ + echo + echo "***********************************************************" + echo "error: not running test suite, /proc/sys/kernel/perf_event_paranoid value too high" + echo "***********************************************************" + echo + exit 0 +fi + coz run --- /bin/ls if grep -q 'startup time=' profile.coz ; then diff -Nru coz-profiler-0.2.2/debian/tests/test-coz-run-simple coz-profiler-0.2.2/debian/tests/test-coz-run-simple --- coz-profiler-0.2.2/debian/tests/test-coz-run-simple 2020-09-02 16:24:05.000000000 +0000 +++ coz-profiler-0.2.2/debian/tests/test-coz-run-simple 2020-09-04 16:21:31.000000000 +0000 @@ -2,6 +2,15 @@ set -e +if [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt 2 ] ; then \ + echo + echo "***********************************************************" + echo "error: not running test suite, /proc/sys/kernel/perf_event_paranoid value too high" + echo "***********************************************************" + echo + exit 0 +fi + cd $AUTOPKGTEST_TMP cat > x.c <<'EOF'