From d4ab58d38a0e4eb6ee04a3c69a817daa2fc1af86 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@debian.org>
Date: Mon, 23 Jan 2017 23:25:32 +0100
Subject: [PATCH] Fixup simple autopkgtest when building the binaries

---
 debian/tests/simple | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/tests/simple b/debian/tests/simple
index 534fc2f..a68a0b9 100755
--- a/debian/tests/simple
+++ b/debian/tests/simple
@@ -1,5 +1,11 @@
 #!/bin/sh
 
+# switch directory into temp dir to ensure we don't try to use the
+# 'xattr.so' from the source package (if autopkgtest has built the
+# package):
+cd "$ADTTMP/"
+
+# and now simply import the modules:
 python2 -c 'import xattr; print xattr; print xattr.__version__'
 python2-dbg -c 'import xattr; print xattr; print xattr.__version__'
 python3 -c 'import xattr; print(xattr); print(xattr.__version__)'
-- 
2.39.5