2675
2677
if __name__ == '__main__':
2681
2678
absfn = os.path.abspath(sys.argv[0])
2682
2679
topdir = os.path.dirname(os.path.dirname(absfn))
2684
2681
if len(sys.argv) > 1 and (sys.argv[1] == '-d' or sys.argv[1] == '--debug'):
2697
os.symlink(os.path.join(topdir, 'apparmor', 'easyprof.py'), symlink)
2705
2685
suite = unittest.TestSuite()
2706
2686
suite.addTest(unittest.TestLoader().loadTestsFromTestCase(T))
2707
2687
rc = unittest.TextTestRunner(verbosity=2).run(suite)
2711
2689
if not rc.wasSuccessful():