Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package FreeCAD for openSUSE:Factory checked 
in at 2026-04-18 21:34:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/FreeCAD (Old)
 and      /work/SRC/openSUSE:Factory/.FreeCAD.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "FreeCAD"

Sat Apr 18 21:34:28 2026 rev:60 rq:1347783 version:1.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/FreeCAD/FreeCAD-test.changes     2025-08-09 
20:06:03.317868806 +0200
+++ /work/SRC/openSUSE:Factory/.FreeCAD.new.11940/FreeCAD-test.changes  
2026-04-18 21:35:00.126206460 +0200
@@ -1,0 +2,11 @@
+Thu Apr 16 16:57:00 UTC 2026 - Stefan Brüns <[email protected]>
+
+- Update to version 1.1.1
+- Ignore known failures, see (gh#FreeCAD/FreeCAD#29311)
+
+-------------------------------------------------------------------
+Thu Mar 26 02:33:58 UTC 2026 - Stefan Brüns <[email protected]>
+
+- Update to version 1.1.0
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/FreeCAD/FreeCAD.changes  2026-04-10 
23:44:53.595275134 +0200
+++ /work/SRC/openSUSE:Factory/.FreeCAD.new.11940/FreeCAD.changes       
2026-04-18 21:35:00.138206950 +0200
@@ -1,0 +2,7 @@
+Thu Apr 16 16:55:42 UTC 2026 - Stefan Brüns <[email protected]>
+
+- Update to version 1.1.1
+  This is a bugfix release, no new features
+- Add Fix_Lineformat_test.patch
+
+-------------------------------------------------------------------

Old:
----
  FreeCAD-1.1.0.tar.gz

New:
----
  Fix_Lineformat_test.patch
  FreeCAD-1.1.1.tar.gz

----------(New B)----------
  New:/work/SRC/openSUSE:Factory/.FreeCAD.new.11940/FreeCAD.changes-  This is a 
bugfix release, no new features
/work/SRC/openSUSE:Factory/.FreeCAD.new.11940/FreeCAD.changes:- Add 
Fix_Lineformat_test.patch
/work/SRC/openSUSE:Factory/.FreeCAD.new.11940/FreeCAD.changes-
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ FreeCAD-test.spec ++++++
--- /var/tmp/diff_new_pack.k26djG/_old  2026-04-18 21:35:01.158248522 +0200
+++ /var/tmp/diff_new_pack.k26djG/_new  2026-04-18 21:35:01.162248685 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           FreeCAD-test
-Version:        1.1.0
+Version:        1.1.1
 Release:        0
 Summary:        Meta source package that runs the FreeCAD testsuite when built
 License:        GPL-2.0-or-later AND LGPL-2.0-or-later
@@ -35,27 +35,36 @@
 %build
 export LC_ALL="C.utf-8"
 export PYTHONPATH=%{_libdir}/FreeCAD/lib
-python3 -c "\
+
+alltests=`python3 -c "\
 import FreeCAD
-import unittest
-print(FreeCAD.__unit_test__, file=sys.stderr)
-results = {}
-for name in FreeCAD.__unit_test__:
-    suite = unittest.TestSuite()
-    suite.addTest(unittest.defaultTestLoader.loadTestsFromName(name))
-    print(\"Running: {}\".format(name), file=sys.stderr)
-    r = unittest.TextTestRunner()
-    res = r.run(suite)
-    results[name] = res
-
-totalerrors = 0
-totalfailures = 0
-for [name,res] in results.items():
-    print(name, file=sys.stderr)
-    print(res, file=sys.stderr)
-    totalerrors += len(res.errors)
-    totalfailures += len(res.failures)
+d = [print('{}'.format(e), end=' ') for e in FreeCAD.__unit_test__]
+"`
 
-exit((totalerrors + totalfailures) > 0)
-"
+declare -a failed
+for test in $alltests; do \
+  python3 -c "\
+import FreeCAD
+import unittest
+name = sys.argv[-1]
+suite = unittest.defaultTestLoader.loadTestsFromName(name)
+print(\"Running: {}\".format(name), file=sys.stderr)
+r = unittest.TextTestRunner()
+res = r.run(suite)
+print(res)
+exit(len(res.errors) + len(res.failures) > 0)
+" $test || failed+=($test)
+done
+
+# Known failures (see https://github.com/FreeCAD/FreeCAD/issues/29311):
+# TestArch TestDraft TestFemApp TestPartApp
+unknown=${failed[@]}
+
+for known in TestArch TestDraft TestFemApp TestPartApp; do \
+    unknown=(${unknown[@]/$known})
+done
+
+echo -e "===\nFailed: ${failed[*]}\nUnknown: ${unknown[*]}\n==="
+# Fail if unknown is not empty
+test -z "${unknown[*]}"
 

++++++ FreeCAD.spec ++++++
--- /var/tmp/diff_new_pack.k26djG/_old  2026-04-18 21:35:01.194249989 +0200
+++ /var/tmp/diff_new_pack.k26djG/_new  2026-04-18 21:35:01.206250478 +0200
@@ -42,7 +42,7 @@
 %endif
 
 Name:           FreeCAD
-Version:        1.1.0
+Version:        1.1.1
 Release:        0
 Summary:        General Purpose 3D CAD Modeler
 License:        GPL-2.0-or-later AND LGPL-2.0-or-later
@@ -63,6 +63,8 @@
 Patch15:        
https://github.com/FreeCAD/FreeCAD/commit/06bc4f61e06fb4215ae7e5014c9870262dfe3577.patch#/CAM_PathOpUtil_Fix_linter.patch
 # PATCH-FIX-UPSTREAM -- 
https://github.com/FreeCAD/FreeCAD/commit/a18f77f3b81c15677973e2ea14274c73200470f1
 Patch16:        Fix_CAM_PathOpUtil_OCCT_7_9.patch
+# PATCH-FIX-UPSTREAM
+Patch17:        
https://github.com/FreeCAD/FreeCAD/commit/605af01bfa14.patch#/Fix_Lineformat_test.patch
 
 # Test suite fails on 32bit and I don't want to debug that anymore
 ExcludeArch:    %ix86 %arm ppc s390 s390x

++++++ Fix_Lineformat_test.patch ++++++
>From 605af01bfa143791881ff67f39af0e0b17357669 Mon Sep 17 00:00:00 2001
From: filippor <[email protected]>
Date: Tue, 31 Mar 2026 14:01:49 +0200
Subject: [PATCH] fix TestLineFormat. intialize preferences

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
---
 tests/src/Mod/TechDraw/App/LineFormat.cpp | 54 ++++++++++++++++-------
 1 file changed, 39 insertions(+), 15 deletions(-)

diff --git a/tests/src/Mod/TechDraw/App/LineFormat.cpp 
b/tests/src/Mod/TechDraw/App/LineFormat.cpp
index b84cd377b2c4..3b005b60b6d0 100644
--- a/tests/src/Mod/TechDraw/App/LineFormat.cpp
+++ b/tests/src/Mod/TechDraw/App/LineFormat.cpp
@@ -4,43 +4,67 @@
 #include <QtCore/Qt>
 
 #include "Mod/TechDraw/App/LineFormat.h"
+#include "src/App/InitApplication.h"
 
-namespace
+class TestLineFormat: public ::testing::Test
 {
+protected:
+    static void SetUpTestSuite()
+    {
+        tests::initApplication();
+    }
+    void SetUp() override
+    {
+        _lineFormat = std::make_unique<TechDraw::LineFormat>(
+            Qt::SolidLine,
+            0.5,
+            Base::Color(0.0F, 0.0F, 0.0F, 1.0F),
+            true
+        );
+    }
+    void TearDown() override
+    {
 
-TechDraw::LineFormat makeLineFormat()
-{
-    return {Qt::SolidLine, 0.5, Base::Color(0.0F, 0.0F, 0.0F, 1.0F), true};
-}
+        _lineFormat.reset();
+    }
+
+    /// Get a non-owning pointer to the internal LineFormat for this test
+    TechDraw::LineFormat* lineFormat()
+    {
+        return _lineFormat.get();
+    }
+
+private:
+    std::unique_ptr<TechDraw::LineFormat> _lineFormat;
+};
 
-}  // namespace
 
-TEST(TestLineFormat, setQColorKeepsOpaqueColorsOpaque)
+TEST_F(TestLineFormat, setQColorKeepsOpaqueColorsOpaque)
 {
-    auto format = makeLineFormat();
+    auto format = lineFormat();
 
-    format.setQColor(QColor(255, 0, 0, 255));
+    format->setQColor(QColor(255, 0, 0, 255));
 
-    const Base::Color stored = format.getColor();
+    const Base::Color stored = format->getColor();
     EXPECT_FLOAT_EQ(stored.r, 1.0F);
     EXPECT_FLOAT_EQ(stored.g, 0.0F);
     EXPECT_FLOAT_EQ(stored.b, 0.0F);
     EXPECT_FLOAT_EQ(stored.a, 1.0F);
 
-    const QColor roundTripped = format.getQColor();
+    const QColor roundTripped = format->getQColor();
     EXPECT_EQ(roundTripped.red(), 255);
     EXPECT_EQ(roundTripped.green(), 0);
     EXPECT_EQ(roundTripped.blue(), 0);
     EXPECT_EQ(roundTripped.alpha(), 255);
 }
 
-TEST(TestLineFormat, setQColorPreservesAlphaValue)
+TEST_F(TestLineFormat, setQColorPreservesAlphaValue)
 {
-    auto format = makeLineFormat();
+    auto format = lineFormat();
 
-    format.setQColor(QColor(12, 34, 56, 78));
+    format->setQColor(QColor(12, 34, 56, 78));
 
-    const QColor roundTripped = format.getQColor();
+    const QColor roundTripped = format->getQColor();
     EXPECT_EQ(roundTripped.red(), 12);
     EXPECT_EQ(roundTripped.green(), 34);
     EXPECT_EQ(roundTripped.blue(), 56);

++++++ FreeCAD-1.1.0.tar.gz -> FreeCAD-1.1.1.tar.gz ++++++
/work/SRC/openSUSE:Factory/FreeCAD/FreeCAD-1.1.0.tar.gz 
/work/SRC/openSUSE:Factory/.FreeCAD.new.11940/FreeCAD-1.1.1.tar.gz differ: char 
5, line 1

Reply via email to