All checks were successful
Test / Create distribution (push) Successful in 44s
Test / ShareFS (push) Successful in 39s
Test / Sandbox (push) Successful in 47s
Test / Sandbox (race detector) (push) Successful in 46s
Test / Hakurei (race detector) (push) Successful in 54s
Test / Hpkg (push) Successful in 50s
Test / Hakurei (push) Successful in 55s
Test / Flake checks (push) Successful in 1m35s
This change makes it possible to check parseOpts behaviour as part of Go tests. Signed-off-by: Ophestra <cat@gensokyo.uk>
17 lines
236 B
Go
17 lines
236 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
// sharefsName is the prefix used by log.std in the sharefs process.
|
|
const sharefsName = "sharefs"
|
|
|
|
func main() {
|
|
log.SetFlags(0)
|
|
log.SetPrefix(sharefsName + ": ")
|
|
|
|
os.Exit(_main(os.Args...))
|
|
}
|