blob: dc9ba4764089ce2e1b69ee24f3e1806dffe0c170 [file] [log] [blame]
# Copyright 2020 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.
import logging
import os
from autotest_lib.client.common_lib import error
from autotest_lib.server import test
class dummy_SynchronousOffloadServer(test.test):
version = 1
def run_once(self):
DIR = os.getenv('SYNCHRONOUS_OFFLOAD_DIR', "")
if DIR == "":
raise error.TestFail("Did not find value for SYNCHRONOUS_OFFLOAD_DIR")
with open(os.path.join(DIR,"test_file"), "w") as f:
f.write("Test string which should be offloaded")
logging.debug("Wrote string to test file.")