blob: 9b6736f7b49da7d2f544fd238570a8f5b5683861 [file] [log] [blame]
# Copyright (c) 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.bin import test
from autotest_lib.client.common_lib import error
class dummy_SynchronousOffload(test.test):
version = 1
def initialize(self):
pass
def run_once(self):
DIR = os.getenv('SYNCHRONOUS_OFFLOAD_DIR', "")
if DIR == "":
raise error.TestFail("Did not find value for SYNCHRONOUS_OFFLOAD_DIR")
if not os.path.isdir(DIR):
raise error.TestFail("$SYNCHRONOUS_OFFLOAD_DIR=%s, which is not "
"a valid directory." % DIR)
logging.debug("Writing to directory %s", 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.")
def cleanup(self):
pass