Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testsuite/test_v_out_geojson.py: error in test design for wrong EPSG code #6

Open
neteler opened this issue Dec 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@neteler
Copy link
Member

neteler commented Dec 5, 2023

The test test_export_to_geojson_stdout_epsgerror

def test_export_to_geojson_stdout_epsgerror(self):

fails too early and breaks the CI:

#12 62.59 Export input as GeoJSON...
#12 62.59 proj_create: crs not found
#12 62.59 ERROR: SRID <EPSG:335888> not recognized by PROJ
#12 62.59 Traceback (most recent call last):
#12 62.59   File "/root/.grass8/addons/scripts/v.out.geojson", line 189, in <module>
#12 62.59     sys.exit(main())
#12 62.59              ^^^^^^
#12 62.59   File "/root/.grass8/addons/scripts/v.out.geojson", line 145, in main
#12 62.59     createTMPlocation(int(options["epsg"]))
#12 62.59   File "/root/.grass8/addons/scripts/v.out.geojson", line 100, in createTMPlocation
#12 62.59     grass.run_command("g.proj", flags="c", location=TMPLOC, quiet=True, **epsg_arg)
#12 62.59   File "/usr/local/grass84/etc/python/grass/script/core.py", line 466, in run_command
#12 62.59     return handle_errors(returncode, result=None, args=args, kwargs=kwargs)
#12 62.59            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#12 62.59   File "/usr/local/grass84/etc/python/grass/script/core.py", line 345, in handle_errors
#12 62.59     raise CalledModuleError(module=module, code=code, returncode=returncode)
#12 62.59 grass.exceptions.CalledModuleError: Module run `g.proj --q -c location=temp_import_location_2803 srid=EPSG:335888` ended with an error.
#12 62.59 The subprocess ended with a non-zero return code: 1. See errors above the traceback or in the error output.
#12 62.59 Cleaning up...
#12 62.59 
#12 ERROR: process "/bin/sh -c grass -c epsg:3358 /grassdb/nc_spm_empty --exec bash test.sh NC" did not complete successfully: exit code: 1
@neteler neteler added the bug Something isn't working label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant