aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/testsuite/testsuite_root.go
blob: 11f503efcb7bc13f065eef3a9ca209c00802dd30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//go:build testsuite

package testsuite

import (
	"log"
	"os"
)

func init() {
	if os.Geteuid() != 0 {
		log.Fatal("this program must run as root")
	}

	log.SetFlags(0)
	log.SetPrefix("testsuite: ")
}