xref: /aosp_15_r20/external/toolchain-utils/crosperf/test_flag.py (revision 760c253c1ed00ce9abd48f8546f08516e57485fe)
1# -*- coding: utf-8 -*-
2# Copyright 2011 The ChromiumOS Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""A global variable for testing."""
7
8is_test = [False]
9
10
11def SetTestMode(flag):
12    is_test[0] = flag
13
14
15def GetTestMode():
16    return is_test[0]
17