1# Copyright (c) 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 9 10class dummy_SynchronousOffload(test.test): 11 version = 1 12 13 def initialize(self): 14 pass 15 16 def run_once(self): 17 DIR = os.getenv('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 22 def cleanup(self): 23 pass 24