~ubuntu-branches/ubuntu/utopic/apparmor/utopic-proposed

« back to all changes in this revision

Viewing changes to utils/test/severity_test.py

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2014-09-08 16:13:10 UTC
  • mfrom: (1.1.28)
  • Revision ID: package-import@ubuntu.com-20140908161310-p9xuv1diw3flgxqe
Tags: 2.8.96~2652-0ubuntu3
* 08-phpsysinfo-policy-updates.patch: update for new phpsysinfo on Ubuntu
  14.10
* 09-apache2-policy-instructions.patch: update for recent Debian/Ubuntu
  packaging
* debian/control: update Breaks for apparmor-easyprof-ubuntu, libvirt-bin,
  and lightdm. Add Breaks on rsyslog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# ----------------------------------------------------------------------
14
14
import os
15
15
import shutil
16
 
import sys
17
16
import unittest
18
17
 
19
 
sys.path.append('../')
20
 
 
21
18
import apparmor.severity as severity
22
19
from apparmor.common import AppArmorException
23
20
 
27
24
        #copy the local profiles to the test directory
28
25
        if os.path.exists('./profiles'):
29
26
            shutil.rmtree('./profiles')
30
 
        shutil.copytree('/etc/apparmor.d/', './profiles/', symlinks=True)
 
27
        shutil.copytree('../../profiles/apparmor.d/', './profiles/', symlinks=True)
31
28
 
32
29
    def tearDown(self):
33
30
        #Wipe the local profiles from the test directory