Skip to content

Commit 0e800cd

Browse files
committed
Fix test cases for Azure Linux
1 parent 9f32705 commit 0e800cd

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

lisa/features/serial_console.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class SerialConsole(Feature):
6363
# more NUMA nodes on AMD processors.
6464
# The call trace is annoying but does not affect correct operation of the VM.
6565
re.compile(r"(.*RIP: 0010:topology_sane.isra.*)$", re.MULTILINE),
66+
re.compile(r".*EFI stub:.*FIRMWARE BUG: kernel image not aligned on 64k boundary.*", re.IGNORECASE),
6667
]
6768

6869
# Patterns for extracting error codes from panic messages

lisa/microsoft/testsuites/stress/tlb_stress.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ def _deploy_tlb_program(self) -> None:
715715

716716
# Create working directory
717717
self.node.execute(f"mkdir -p {self._work}", sudo=True)
718+
self.node.execute(f"chmod 777 {self._work}", sudo=True)
718719

719720
# Get the C program from the same directory
720721
c_program_path = Path(__file__).parent / "tlb_flush_stress.c"

lisa/tools/modprobe.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ def reload(
194194
modprobe_reloader_script: CustomScript = self.node.tools[modprobe_reloader_tool]
195195
modprobe_reloader_script.run(parameters, sudo=True, shell=True, nohup=True)
196196

197+
original_user = self.node.connection_info.get('username', None)
198+
if original_user:
199+
self.node.execute(
200+
f"chown {original_user}:{original_user} {loop_process_pid_file_name}",
201+
sudo=True,
202+
shell=True,
203+
)
204+
197205
cat = self.node.tools[Cat]
198206
tried_times: int = 0
199207
timer = create_timer()

0 commit comments

Comments
 (0)