sebageek / servefile

serve or receive files from shell via a small HTTP server
38 stars 10 forks source link

Allow ports for tests to be specified via env #10

Closed sebageek closed 3 years ago

sebageek commented 3 years ago

SERVEFILE_DEFAULT_PORT and SERVEFILE_SECONDARY_PORT can be used to specify ports used in the servefile tests. This can be useful if the default port 8080 and the secondary port 8081 (for the -p test) are already in use. To allow automatic choosing of a free port 0 can be specified to tell the test code to automatically select a free port.