Adapt vendor check
authorMichael Andres <ma@suse.de>
Fri, 5 Apr 2013 14:06:46 +0000 (16:06 +0200)
committerMichael Andres <ma@suse.de>
Fri, 5 Apr 2013 14:06:46 +0000 (16:06 +0200)
tests/zypp/Vendor_test.cc

index 4aad252..870a7b7 100644 (file)
@@ -38,6 +38,9 @@ BOOST_AUTO_TEST_CASE(vendor_test1)
   // but "opensuse build service" gets its own class:
   BOOST_REQUIRE( !VendorAttr::instance().equivalent("opensuse build service", "suse") );
   BOOST_REQUIRE( !VendorAttr::instance().equivalent("opensuse build service", "opensuse") );
-  BOOST_REQUIRE( VendorAttr::instance().equivalent("opensuse build service", "opensuse build service 2") );
+  // bnc#812608: All opensuse projects get their own class
+  BOOST_REQUIRE( !VendorAttr::instance().equivalent("opensuse-education", "suse") );
+  BOOST_REQUIRE( !VendorAttr::instance().equivalent("opensuse-education", "opensuse") );
+  BOOST_REQUIRE( !VendorAttr::instance().equivalent("opensuse-education", "opensuse build service") );
 }