Remove /usr/bin/py.test and /usr/bin/pytest from install path

When moving to python3 and building openbmc, Yocto throws a
QA issue in that, both python2 and python3 attempt to install
/usr/bin/py.test, which is not used and hence this commit deletes
the file

(From meta-phosphor rev: 34ec91f787555b2d5086cc1e8c61c8e8833726f3)

Change-Id: Ib7aca05972525e0edf6ad3b2c1f29759d761084c
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-phosphor/recipes-devtools/python/python-pytest_%.bbappend b/meta-phosphor/recipes-devtools/python/python-pytest_%.bbappend
new file mode 100644
index 0000000..e8dd736
--- /dev/null
+++ b/meta-phosphor/recipes-devtools/python/python-pytest_%.bbappend
@@ -0,0 +1,13 @@
+# python-pytest installs /usr/bin/pytest for both python2 and python3,
+# which causes a bitbake QA failure.  Remove it from installation for the
+# native target to avoid the collision.
+#
+# We don't currently use this as a target package and if we did, we shouldn't
+# install both python2 and python3 variants.
+#
+# Once we are done with python2, we can delete this.
+
+do_install_append_class-native() {
+    rm ${D}${bindir}/py.test
+    rm ${D}${bindir}/pytest
+}