#!/usr/bin/env python1# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2# Copyright (C) 2011-2025 German Aerospace Center (DLR) and others.3# This program and the accompanying materials are made available under the4# terms of the Eclipse Public License 2.0 which is available at5# https://www.eclipse.org/legal/epl-2.0/6# This Source Code may also be made available under the following Secondary7# Licenses when the conditions for such availability set forth in the Eclipse8# Public License 2.0 are satisfied: GNU General Public License, version 29# or later which is available at10# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later1213# @file runner.py14# @author Michael Behrisch15# @date 2022-10-271617from __future__ import absolute_import18from __future__ import print_function1920import os21import sys22import subprocess23import datetime2425TOOLS = os.path.join(os.environ["SUMO_HOME"], "tools")2627# the following two lines are basically a hack to save the osm data on the test server for later inspection28osm_history = os.path.join(os.environ.get("SUMO_REPORT", ""), datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S"))29out_dir = osm_history if os.environ.get("FILEPREFIX") == "gcc4_64" else "test"30subprocess.call([sys.executable,31os.path.join(TOOLS, "osmWebWizard.py"), "-b=7:0:0", "-e=8:0:0",32"--bbox=13.381507,52.511801,13.417790,52.527748", "--test-output", out_dir,33"-n=--aggregate-warnings=0", "--remote"])34subprocess.call([sys.executable,35os.path.join(TOOLS, "import", "gtfs", "gtfs2pt.py"),36"-n", os.path.join(out_dir, "osm.net.xml.gz")] + sys.argv[1:])373839