blob: c8af3247561a3d39e25c67a51b9c50a798cc9e17 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package device_test
import (
"os/user"
"testing"
"v.io/x/ref/test/v23test"
)
const psFlags = "-eouser:20,pid"
func makeTestAccounts(t *testing.T, sh *v23test.Shell) {
sudo := "/usr/bin/sudo"
if _, err := user.Lookup("vana"); err != nil {
sh.Cmd(sudo, "/usr/sbin/adduser", "--no-create-home", "vana").Run()
}
if _, err := user.Lookup("devicemanager"); err != nil {
sh.Cmd(sudo, "/usr/sbin/adduser", "--no-create-home", "devicemanager").Run()
}
}
const runTestOnThisPlatform = true