blob: eabf7e3680c4ed42cffe6c9d49424e40d7c9e0bc [file] [log] [blame]
// Copyright 2019 The Chromium OS 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 meta
import (
func init() {
Func: RemoteVars,
Desc: "Helper test that inspects a runtime variable",
Contacts: []string{"", ""},
VarDeps: []string{"meta.RemoteVars.var"},
// This test is called by remote tests in the meta package.
func RemoteVars(ctx context.Context, s *testing.State) {
p := filepath.Join(s.OutDir(), "var.txt")
if err := ioutil.WriteFile(p, []byte(s.RequiredVar("meta.RemoteVars.var")), 0644); err != nil {
s.Error("Failed to write variable: ", err)