• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import logging
6import os
7
8from autotest_lib.client.bin import test
9from autotest_lib.client.common_lib import error
10
11class dummy_SynchronousOffloadServer(test.test):
12  version = 1
13
14  def run_once(self):
15    DIR = os.getenv('SYNCHRONOUS_OFFLOAD_DIR')
16    if DIR == "":
17      raise error.TestFail("Did not find value for SYNCHRONOUS_OFFLOAD_DIR")
18    with open(os.path.join(DIR,"test_file"), "w") as f:
19      f.write("Test string which should be offloaded")
20      logging.debug("Wrote string to test file.")
21