about summary refs log tree commit diff
path: root/nixos/lib
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2024-03-01 13:20:09 +0300
committerK900 <me@0upti.me>2024-03-01 13:20:09 +0300
commite758ca61feefb3de4bf0381f3123916cdadd0a53 (patch)
tree9ab5bbc4263a95b71f805fe90651687d213a6de0 /nixos/lib
parent1dfd9a62f32d09b918744985efb1b18e542f30d9 (diff)
nixos/lib/test-driver: make the warning message more noticeable
Diffstat (limited to 'nixos/lib')
-rw-r--r--nixos/lib/test-driver/test_driver/driver.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/lib/test-driver/test_driver/driver.py b/nixos/lib/test-driver/test_driver/driver.py
index 72a33e0b2d578..f792c04591996 100644
--- a/nixos/lib/test-driver/test_driver/driver.py
+++ b/nixos/lib/test-driver/test_driver/driver.py
@@ -7,6 +7,8 @@ from contextlib import contextmanager
 from pathlib import Path
 from typing import Any, Callable, ContextManager, Dict, Iterator, List, Optional, Union
 
+from colorama import Fore, Style
+
 from test_driver.logger import rootlog
 from test_driver.machine import Machine, NixStartScript, retry
 from test_driver.polling_condition import PollingCondition
@@ -226,7 +228,10 @@ class Driver:
                 )
 
             rootlog.warning(
-                "Using create_machine with a single dictionary argument is deprecated, and will be removed in NixOS 24.11"
+                Fore.YELLOW
+                + Style.BRIGHT
+                + "WARNING: Using create_machine with a single dictionary argument is deprecated and will be removed in NixOS 24.11"
+                + Style.RESET_ALL
             )
         # End legacy args handling