[new failures] Failing tests: path wb

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

[new failures] Failing tests: path wb

Post by looo »

Sunday builds fail due to path tests.

Code: Select all

ERROR: test00 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix does not throw an exception.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

======================================================================
ERROR: test01 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix generates proper holes from model
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

======================================================================
ERROR: test02 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix generates proper holes for rotated model
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

======================================================================
ERROR: test03 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix generates proper holes for rotated base model
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

======================================================================
ERROR: test04 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix generates proper holes for rotated clone base model
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

----------------------------------------------------------------------
Ran 340 tests in 26.112s

https://circleci.com/gh/looooo/freecad- ... tification

https://circleci.com/gh/looooo/freecad- ... tification
Last edited by looo on Sun Sep 01, 2019 1:44 pm, edited 2 times in total.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Failing tests: path wb

Post by sgrogan »

looo wrote: Sun Aug 25, 2019 9:44 am Sunday builds fail due to path tests.
See Here: https://github.com/FreeCAD/FreeCAD/pull/2451
"fight the good fight"
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: Failing tests: path wb

Post by mlampert »

apologies - and thanks @sgrogan for cleaning up my mess :oops:
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Failing tests: path wb

Post by looo »

Thanks. Works now.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [new failures] Failing tests: path wb

Post by looo »

There are some new failures when testing with gui:

1.

Code: Select all

Traceback (most recent call last):
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testsolverframework.py", line 247, in test_solver_framework
    self.assertFalse(ret, "GMSH geo write file test failed.\n{}".format(ret))
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 686, in assertFalse
    raise self.failureException(msg)
AssertionError: 'Comparing /home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testfiles/elmer/group_mesh.geo to /tmp/FEM_unittests/FEM_solverframework/group_mesh.geo failed!\n--- \n+++ \n@@ -1,0 +2 @@\n+Merge  + self.temp_file_geometry + ;\n@@ -3,4 +4,4 @@\n-Physical Surface("Face1") = {1};\n-Physical Surface("Face2") = {2};\n-Physical Surface("Face6") = {6};\n-Physical Volume("Solid1") = {1};\n+Physical Surface( + group + ) = {1};\n+Physical Surface( + group + ) = {2};\n+Physical Surface( + group + ) = {6};\n+Physical Volume( + group + ) = {1};\n' is not false : GMSH geo write file test failed.
Comparing /home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testfiles/elmer/group_mesh.geo to /tmp/FEM_unittests/FEM_solverframework/group_mesh.geo failed!
--- 
+++ 
@@ -1,0 +2 @@
+Merge  + self.temp_file_geometry + ;
@@ -3,4 +4,4 @@
-Physical Surface("Face1") = {1};
-Physical Surface("Face2") = {2};
-Physical Surface("Face6") = {6};
-Physical Volume("Solid1") = {1};

2.

Code: Select all

Traceback (most recent call last):
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/home/lo/conda/envs/freecadqt5.12/Mod/Path/PathTests/TestPathSetupSheet.py", line 53, in test00
    attrs = ss.templateAttributes(True, True)
  File "/home/lo/conda/envs/freecadqt5.12/Mod/Path/PathScripts/PathSetupSheet.py", line 192, in templateAttributes
    attrs[Template.CoolantMode] = self.obj.CoolantMode.UserString
AttributeError: 'str' object has no attribute 'UserString'
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [new failures] Failing tests: path wb

Post by Kunda1 »

Code: Select all

Traceback (most recent call last):
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testsolverframework.py", line 247, in test_solver_framework
    self.assertFalse(ret, "GMSH geo write file test failed.\n{}".format(ret))
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 686, in assertFalse
    raise self.failureException(msg)
AssertionError: 'Comparing /home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testfiles/elmer/group_mesh.geo to /tmp/FEM_unittests/FEM_solverframework/group_mesh.geo failed!\n--- \n+++ \n@@ -1,0 +2 @@\n+Merge  + self.temp_file_geometry + ;\n@@ -3,4 +4,4 @@\n-Physical Surface("Face1") = {1};\n-Physical Surface("Face2") = {2};\n-Physical Surface("Face6") = {6};\n-Physical Volume("Solid1") = {1};\n+Physical Surface( + group + ) = {1};\n+Physical Surface( + group + ) = {2};\n+Physical Surface( + group + ) = {6};\n+Physical Volume( + group + ) = {1};\n' is not false : GMSH geo write file test failed.
Comparing /home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testfiles/elmer/group_mesh.geo to /tmp/FEM_unittests/FEM_solverframework/group_mesh.geo failed!
Looks like FEM as well
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply