1// Copyright (c) 2022 Gitpod GmbH. All rights reserved. 2/// Licensed under the GNU Affero General Public License (AGPL). 3// See License.AGPL.txt in the project root for license information. 4 5package cmd 6 7import ( 8 "flag" 9 "os" 10 "testing" 11) 12 13func init() { 14 // Ensure that the randomisation always returns the same values 15 rootOpts.SeedValue = 42 16} 17 18func TestMain(m *testing.M) { 19 flag.Parse() 20 os.Exit(m.Run()) 21} 22 23