#3769 closed defect (fixed)

[testsuite] Do not hardcode the path of the GRASSSRC

Reported by: pmav99 Owned by: grass-dev@…
Priority: normal Milestone:
Component: Tests Version: svn-trunk
Keywords: Cc:
CPU: Unspecified Platform: Unspecified


The hardcoded path makes it difficult to run the testsuite without modifying the configuration file. By using a relative path, anyone can run the testuite without any modifications.

Original PR: https://github.com/GRASS-GIS/grass-ci/pull/5

Index: testsuite/examples/test_framework_GRASS_GIS_with_NC.conf
--- testsuite/examples/test_framework_GRASS_GIS_with_NC.conf	(revision 74152)
+++ testsuite/examples/test_framework_GRASS_GIS_with_NC.conf	(working copy)
@@ -3,7 +3,7 @@
 # name of binary:
 # source code directory as full path:
+GRASSSRC="$(realpath ../../)"
 # temporary grassdata directory

Change History (1)

comment:1 Changed 12 months ago by neteler

Resolution: fixed
Status: newclosed

In 74158:

test_framework_GRASS_GIS_with_NC.sh: avoid hardcoded path; usage mesg cosmetics (fixes #3769)

Note: See TracTickets for help on using tickets.