<p></p>
<blockquote>
<p>As far as I can see, all regression tests just use the same line cmdline.extend(('-d', CONFIG['test_database'])) in def run_import. I am not sure how to best bring this in there.</p>
</blockquote>
<p>I'd suggest to call the <code>extend()</code> only if <code>params</code> does not contain a <code>-d</code> or <code>--database</code> already. The you can add a special <code>-d</code> to some of the tests (or have a separate test for it).</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1281#issuecomment-704113032">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353SXDDBBO745OXU4WV3SJLHXVANCNFSM4SEVEPAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353UGLVWK2OID7HLN6LLSJLHXVA5CNFSM4SEVEPAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFH36TCA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1281#issuecomment-704113032",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1281#issuecomment-704113032",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>