File: upstream

package info (click to toggle)
python-dbusmock 0.36.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 812 kB
  • sloc: python: 7,324; sh: 73; makefile: 4
file content (12 lines) | stat: -rwxr-xr-x 354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e
cd tests

# disable notify-send AppArmor profile on Ubuntu
if command -v apparmor_parser && [ -e /etc/apparmor.d/notify-send ]; then
    ln -s /etc/apparmor.d/notify-send /etc/apparmor.d/disable/
    apparmor_parser -R /etc/apparmor.d/notify-send
fi

# run the tests as user
su -s /bin/bash - -c "cd $PWD; python3 -m unittest -v" daemon