So I tried my patch and made relevant changes to our test suite (lp:ubuntu-system-tests) and it does seem to be working fine.
My previous comment came as I had inspecting that aa-clickhook was called after temporary debs were installed in /tmp/adt-run.XXXX directory. and this code[1], which added each directory path to the click-ap.rules file. Since the above patch is working, we can blame my understand of aa-clickhook here to be the issue.
So I tried my patch and made relevant changes to our test suite (lp:ubuntu-system-tests) and it does seem to be working fine.
My previous comment came as I had inspecting that aa-clickhook was called after temporary debs were installed in /tmp/adt-run.XXXX directory. and this code[1], which added each directory path to the click-ap.rules file. Since the above patch is working, we can blame my understand of aa-clickhook here to be the issue.
Do you have comments about the diff ?
[1] http:// anonscm. debian. org/cgit/ autopkgtest/ autopkgtest. git/tree/ lib/adt_ testbed. py#n786