Macaulay2 / M2

The primary source code repository for Macaulay2, a system for computing in commutative algebra, algebraic geometry and related fields.
https://macaulay2.com
343 stars 230 forks source link

scrambled output while running tests: #1652

Closed DanGrayson closed 3 years ago

DanGrayson commented 3 years ago
 -- making test results-* running test 15 of package Truncations in file:
   ../../../../../../Macaulay2/packages/Truncations.m2:734:1:
   rerun with: check_15 "Truncations" *-
 -- making test resultsif ! grep "CacheExampleOutput => true" /Users/dan/src/M2/M2.git/M2/Macaulay2/packages/Units.m2 >/dev/null ; then /Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/gallium-development/usr-dist/x86_64-Darwin-macOS-11.0.1/bin/M2 -q --no-preload --stop --silent -e "needsPackage(\"Units\",LoadDocumentation=>true,DebuggingMode=>true); check(Units,UserMode=>false,Verbose=>false); exit 0" ; fi 
if ! grep "CacheExampleOutput => true" /Users/dan/src/M2/M2.git/M2/Macaulay2/packages/VectorFields.m2 >/dev/null ; then /Users/dan/src/M2/M2.git/M2/BUILD/dan/builds.tmp/gallium-development/usr-dist/x86_64-Darwin-macOS-11.0.1/bin/M2 -q --no-preload --stop --silent -e "needsPackage(\"VectorFields\",LoadDocumentation=>true,DebuggingMode=>true); check(VectorFields,UserMode=>false,Verbose=>false); exit 0" ; fi 
-* running test 0 of package VectorFields in file:
   ../../../../../../Macaulay2/packages/VectorFields.m2:2177:1:
   rerun with: check_0 "VectorFields" *-
mahrud commented 3 years ago

Would a newline before -* running test ... not fix this?

d-torrance commented 3 years ago

Would a newline before -* running test ... not fix this?

I think after -- making test results is where the newline needs to go. I just got this running a CI test on a draft of the Debian package:

:
   /usr/share/Macaulay2/MultiplicitySequence.m2:645:1:
   rerun with: check_4 "MultiplicitySequence" *-
 -- making test resultsautopkgtest [01:45:56]: test command1: -----------------------]
autopkgtest [01:45:57]: test command1:  - - - - - - - - - - results - - - - - - - - - -
command1             PASS
autopkgtest [01:45:57]: @@@@@@@@@@@@@@@@@@@@ summary
command1             PASS
DanGrayson commented 3 years ago

No, I think the problem is that it prints " -- making test results" and then does not make a test result. It should not print that last one.