File: 2001-version-test.patch

package info (click to toggle)
cura-engine 1%3A4.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,932 kB
  • sloc: cpp: 47,674; python: 295; sh: 69; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/tests/GCodeExportTest.cpp
+++ b/tests/GCodeExportTest.cpp
@@ -252,7 +252,8 @@ TEST_P(GriffinHeaderTest, HeaderGriffinF
     EXPECT_EQ(std::string(";GENERATOR.NAME:Cura_SteamEngine"), token);
     std::getline(result, token, '\n');
     EXPECT_EQ(std::string(";GENERATOR.VERSION:"), token.substr(0, 19));
-    EXPECT_EQ(std::string("master"), token.substr(19));
+    // debian/rules sets this to the actual package version instead of "master":
+    EXPECT_EQ(std::getenv("DEB_VERSION_UPSTREAM"), token.substr(19));
     std::getline(result, token, '\n');
     EXPECT_EQ(std::string(";GENERATOR.BUILD_DATE:"), token.substr(0, 22));
     EXPECT_EQ(Date::getDate().toStringDashed(), token.substr(22));