upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-29 14:22:35 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-29 14:22:35 -0500
commitd927eb1906bc2b8c10bd5dcb87c2bd32623f2dcd (patch)
treee3203aff5811f9076935b11e918c9caba837a9b9 /scripts
parent9899a9801261e8675379939afda2db409654b13c (diff)
parentdd87aa405a0d48cbce4269c9d20e50c3ec8b5dbc (diff)
Merge remote-tracking branch 'origin/main' into next
Diffstat (limited to 'scripts')
-rw-r--r--scripts/play-d3d12.ps15
-rw-r--r--scripts/windows-boot/README.md9
-rw-r--r--scripts/windows-boot/boot.ps1106
-rw-r--r--scripts/windows-boot/test_crash_monitor.py4
4 files changed, 110 insertions, 14 deletions
diff --git a/scripts/play-d3d12.ps1 b/scripts/play-d3d12.ps1
index aed36ce25..4bcaad50c 100644
--- a/scripts/play-d3d12.ps1
+++ b/scripts/play-d3d12.ps1
@@ -24,6 +24,8 @@
24# on the title's own upscaler, held to 28 shown frames a second. 24# on the title's own upscaler, held to 28 shown frames a second.
25# -NoFrameGen no DLSS frame generation at all, the frames the game renders only 25# -NoFrameGen no DLSS frame generation at all, the frames the game renders only
26# -MotionBlur the game's own motion blur (left out by default: at this frame rate it smears in blocks on turns) 26# -MotionBlur the game's own motion blur (left out by default: at this frame rate it smears in blocks on turns)
27# -FsrFrameGen AMD's FSR 3 frame generation instead (2x), for cards without DLSS frame generation (RTX 20 and 30):
28# needs AMD's two signed FidelityFX DLLs in d3d12\amd-sdk\FidelityFX\bin
27# -Aspect the window's shape: 21:9, 32:9, 16:9, W:H or auto (the screen's). The game still draws 16:9, shown 29# -Aspect the window's shape: 21:9, 32:9, 16:9, W:H or auto (the screen's). The game still draws 16:9, shown
28# centred with black bars (-PresentScale fit, the default with -Aspect) or stretched (stretch). 30# centred with black bars (-PresentScale fit, the default with -Aspect) or stretched (stretch).
29# -Resolution the older path: the game renders at this height and the title's own upscaler does the rest 31# -Resolution the older path: the game renders at this height and the title's own upscaler does the rest
@@ -52,6 +54,7 @@ param(
52 [ValidateSet(0, 2, 3, 4, 5, 6)][int]$FrameGen = 0, 54 [ValidateSet(0, 2, 3, 4, 5, 6)][int]$FrameGen = 0,
53 [switch]$NoFrameGen, 55 [switch]$NoFrameGen,
54 [switch]$MotionBlur, 56 [switch]$MotionBlur,
57 [switch]$FsrFrameGen,
55 [string]$Aspect = '', 58 [string]$Aspect = '',
56 [ValidateSet('', 'fit', 'stretch')][string]$PresentScale = '', 59 [ValidateSet('', 'fit', 'stretch')][string]$PresentScale = '',
57 [string]$Adapter = '', 60 [string]$Adapter = '',
@@ -97,7 +100,7 @@ if ($Dlss) { $launch.Dlss = $Dlss }
97if ($FrameGen) { $launch.FrameGen = $FrameGen } 100if ($FrameGen) { $launch.FrameGen = $FrameGen }
98if ($Aspect) { $launch.Aspect = $Aspect } 101if ($Aspect) { $launch.Aspect = $Aspect }
99if ($PresentScale) { $launch.PresentScale = $PresentScale } 102if ($PresentScale) { $launch.PresentScale = $PresentScale }
100foreach ($switch in 'Quality', 'NoDlss', 'NoFrameGen', 'MotionBlur', 'RayTracing', 'Capture', 'NoPrecompile', 'Log', 'DryRun') { 103foreach ($switch in 'Quality', 'NoDlss', 'NoFrameGen', 'MotionBlur', 'RayTracing', 'Capture', 'NoPrecompile', 'Log', 'DryRun', 'FsrFrameGen') {
101 if ($PSBoundParameters[$switch]) { $launch[$switch] = $true } 104 if ($PSBoundParameters[$switch]) { $launch[$switch] = $true }
102} 105}
103if ($Resolution) { $launch.Resolution = $Resolution } 106if ($Resolution) { $launch.Resolution = $Resolution }
diff --git a/scripts/windows-boot/README.md b/scripts/windows-boot/README.md
index 26493ff8a..1d3328ec8 100644
--- a/scripts/windows-boot/README.md
+++ b/scripts/windows-boot/README.md
@@ -25,6 +25,9 @@ Set `LEONIDA_GAME_DIR`, `LEONIDA_SHADERS` (and `GTA6RT`, `LEONIDA_RUNS` if you u
25profile and the parameters can be left out. Defaults: `gta6rt` from `runtime\build\RelWithDebInfo\` of this 25profile and the parameters can be left out. Defaults: `gta6rt` from `runtime\build\RelWithDebInfo\` of this
26checkout, the executable from the game folder (`-Exe` or `LEONIDA_EXE` when it lives elsewhere), outputs in `$HOME\leonida-runs`. 26checkout, the executable from the game folder (`-Exe` or `LEONIDA_EXE` when it lives elsewhere), outputs in `$HOME\leonida-runs`.
27The script refuses an output folder inside the repository. 27The script refuses an output folder inside the repository.
28The runtime starts in `<out>\work_<name>`, where driver artifacts such as `ucode.elf` can land. Relative path
29parameters are resolved from the caller's PowerShell location. Use absolute paths for additional runtime switches
30supplied through `-ExtraArgs` or custom environment variables.
28 31
29### Private crash diagnostics 32### Private crash diagnostics
30 33
@@ -87,6 +90,12 @@ Several records can describe one loss. A driver can also report loss without any
87Share counts and states on the board. Keep paths, logs, traces, captures and dumps on your machine 90Share counts and states on the board. Keep paths, logs, traces, captures and dumps on your machine
88([AGENTS.md](../../AGENTS.md), "No game data"). 91([AGENTS.md](../../AGENTS.md), "No game data").
89 92
93When the log contains a device loss, a fault query outcome or checkpoint records, `fault context` shows the first
94recognized Vulkan API that reported loss and the first observed fault query outcome. An unrecognized operation is
95shown as `other`. A missing outcome is `not observed`. The queue count includes queries that returned zero
96checkpoints. `reported` sums the driver counts from the queue headers. `decoded` and `unrecognized` count the
97two kinds of printed stage records, so a truncated log can have fewer printed records than reported checkpoints.
98
90How to read the states: game state goes 1, 2 (init), 3 (running); session state goes 0, 1, 3 (landing 99How to read the states: game state goes 1, 2 (init), 3 (running); session state goes 0, 1, 3 (landing
91screen waiting for A), `d` after A. 100screen waiting for A), `d` after A.
92 101
diff --git a/scripts/windows-boot/boot.ps1 b/scripts/windows-boot/boot.ps1
index 42753025c..98be96e92 100644
--- a/scripts/windows-boot/boot.ps1
+++ b/scripts/windows-boot/boot.ps1
@@ -148,6 +148,12 @@ function Get-FirstValue {
148 return "" 148 return ""
149} 149}
150 150
151function Get-BootPath {
152 param([string]$Path)
153 if ($Path) { return $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Path) }
154 return ""
155}
156
151function Read-SideFile { 157function Read-SideFile {
152 # One line from a text file make_game.py writes beside gta6rt.exe (game_path.txt, shader_path.txt). 158 # One line from a text file make_game.py writes beside gta6rt.exe (game_path.txt, shader_path.txt).
153 param([string]$Path) 159 param([string]$Path)
@@ -197,14 +203,14 @@ if (-not $Name) { $Name = "boot-" + (Get-Date -Format "yyyyMMdd-HHmmss") }
197if ($NoInput) { $InputScript = "" } 203if ($NoInput) { $InputScript = "" }
198if ($Name -notmatch '^[A-Za-z0-9._-]+$') { throw "-Name may hold letters, digits, '.', '_' and '-' only: $Name" } 204if ($Name -notmatch '^[A-Za-z0-9._-]+$') { throw "-Name may hold letters, digits, '.', '_' and '-' only: $Name" }
199 205
200$Runtime = Get-FirstValue @($Runtime, $env:GTA6RT, (Join-Path $RepoRoot "runtime\build\RelWithDebInfo\gta6rt.exe")) 206$Runtime = Get-BootPath (Get-FirstValue @($Runtime, $env:GTA6RT, (Join-Path $RepoRoot "runtime\build\RelWithDebInfo\gta6rt.exe")))
201$RuntimeDir = Split-Path -Parent $Runtime 207$RuntimeDir = Split-Path -Parent $Runtime
202$GameDir = Get-FirstValue @($GameDir, $env:LEONIDA_GAME_DIR, (Read-SideFile (Join-Path $RuntimeDir "game_path.txt"))) 208$GameDir = Get-BootPath (Get-FirstValue @($GameDir, $env:LEONIDA_GAME_DIR, (Read-SideFile (Join-Path $RuntimeDir "game_path.txt"))))
203$Exe = Get-FirstValue @($Exe, $env:LEONIDA_EXE, $(if ($GameDir) { Join-Path $GameDir $ExeName } else { "" })) 209$Exe = Get-BootPath (Get-FirstValue @($Exe, $env:LEONIDA_EXE, $(if ($GameDir) { Join-Path $GameDir $ExeName } else { "" })))
204$Shaders = Get-FirstValue @($Shaders, $env:LEONIDA_SHADERS) 210$Shaders = Get-BootPath (Get-FirstValue @($Shaders, $env:LEONIDA_SHADERS))
205$OutDir = Get-FirstValue @($OutDir, $env:LEONIDA_RUNS, (Join-Path $HOME "leonida-runs")) 211$OutDir = Get-BootPath (Get-FirstValue @($OutDir, $env:LEONIDA_RUNS, (Join-Path $HOME "leonida-runs")))
206$OutDir = [System.IO.Path]::GetFullPath($OutDir) 212$Overlay = Get-BootPath (Get-FirstValue @($Overlay, (Join-Path $OutDir "overlay")))
207$Overlay = Get-FirstValue @($Overlay, (Join-Path $OutDir "overlay")) 213$RunDirectory = Join-Path $OutDir ("work_" + $Name)
208$Capture = Join-Path $OutDir ("cap_" + $Name) 214$Capture = Join-Path $OutDir ("cap_" + $Name)
209$LogFile = Join-Path $OutDir ($Name + ".log") 215$LogFile = Join-Path $OutDir ($Name + ".log")
210$StdoutFile = Join-Path $OutDir ($Name + ".stdout.log") 216$StdoutFile = Join-Path $OutDir ($Name + ".stdout.log")
@@ -304,8 +310,7 @@ if ($bootEnv["LEONIDA_CAPTURE"]) { $Capture = $bootEnv["LEONIDA_CAPTURE"] }
304# is read here as the runtime's read-only seed (LEONIDA_PIPELINE_JOURNAL_SEED_DIR, docs/d3d12_vulkan.md), so the pipelines 310# is read here as the runtime's read-only seed (LEONIDA_PIPELINE_JOURNAL_SEED_DIR, docs/d3d12_vulkan.md), so the pipelines
305# it holds are not compiled again in the boot's own cache folder. Only when this shell or -SetEnv/KEY= did not decide, and 311# it holds are not compiled again in the boot's own cache folder. Only when this shell or -SetEnv/KEY= did not decide, and
306# when the two journals are distinct: the runtime turns its journal off for a seed that is, holds or sits in its writable 312# when the two journals are distinct: the runtime turns its journal off for a seed that is, holds or sits in its writable
307# journal (pipeline_cache_journal.h, resolve_roots). A relative cache folder is resolved by the runtime against its own 313# journal (pipeline_cache_journal.h, resolve_roots). A relative or unresolvable cache folder gets no automatic seed.
308# working folder, so it gets no seed here; a name that cannot be resolved gets none either, rather than a stop.
309if (-not $bootEnv.Contains("LEONIDA_PIPELINE_JOURNAL_SEED_DIR")) { 314if (-not $bootEnv.Contains("LEONIDA_PIPELINE_JOURNAL_SEED_DIR")) {
310 # Windows' final path of a folder (GetFinalPathNameByHandle) sees through junctions, symbolic links, substituted 315 # Windows' final path of a folder (GetFinalPathNameByHandle) sees through junctions, symbolic links, substituted
311 # and mapped drives, short 8.3 names and the \\?\ and \\.\ prefixes, as the runtime's std::filesystem checks do. 316 # and mapped drives, short 8.3 names and the \\?\ and \\.\ prefixes, as the runtime's std::filesystem checks do.
@@ -370,6 +375,19 @@ public static class LeonidaFinalPath {
370 if ($seed) { $bootEnv["LEONIDA_PIPELINE_JOURNAL_SEED_DIR"] = $seed } 375 if ($seed) { $bootEnv["LEONIDA_PIPELINE_JOURNAL_SEED_DIR"] = $seed }
371} 376}
372 377
378foreach ($key in @("LEONIDA_SHADERS", "LEONIDA_PIPELINE_CACHE_DIR")) {
379 if ($bootEnv[$key]) { $bootEnv[$key] = Get-BootPath $bootEnv[$key] }
380}
381foreach ($key in @("LEONIDA_COMPAT_DIR", "LEONIDA_DSTORAGE_HISTORY", "LEONIDA_SAVE_DIR",
382 "LEONIDA_WRITE_DIR", "LEONIDA_XMEM_BACKING_DIR")) {
383 $value = $bootEnv[$key]
384 if ($value -and -not [System.IO.Path]::IsPathRooted($value)) {
385 $bootEnv[$key] = Get-BootPath (Join-Path $RepoRoot $value)
386 }
387}
388$Capture = Get-BootPath $Capture
389if ($bootEnv["LEONIDA_CAPTURE"]) { $bootEnv["LEONIDA_CAPTURE"] = $Capture }
390
373$launchMode = if ($FirstRunUi) { "--first-run-ui" } else { "--run" } 391$launchMode = if ($FirstRunUi) { "--first-run-ui" } else { "--run" }
374$gameArgs = @($launchMode, $Exe, "--game-dir", $GameDir, "--overlay", $Overlay, "--trace", $TraceFile, "--trace-d3d12") + $ExtraArgs 392$gameArgs = @($launchMode, $Exe, "--game-dir", $GameDir, "--overlay", $Overlay, "--trace", $TraceFile, "--trace-d3d12") + $ExtraArgs
375$argLine = ($gameArgs | ForEach-Object { ConvertTo-ProcessArgument ([string]$_) }) -join " " 393$argLine = ($gameArgs | ForEach-Object { ConvertTo-ProcessArgument ([string]$_) }) -join " "
@@ -378,6 +396,7 @@ if (-not $DigestOnly) {
378 Write-Output "[boot] $Name ${Seconds}s repo $RepoRoot" 396 Write-Output "[boot] $Name ${Seconds}s repo $RepoRoot"
379 Write-Output "[boot] gta6rt $Runtime" 397 Write-Output "[boot] gta6rt $Runtime"
380 Write-Output "[boot] out $OutDir" 398 Write-Output "[boot] out $OutDir"
399 Write-Output "[boot] cwd $RunDirectory"
381 foreach ($k in $bootEnv.Keys) { if ($bootEnv[$k] -ne "") { Write-Output ("[boot] env {0}={1}" -f $k, $bootEnv[$k]) } } 400 foreach ($k in $bootEnv.Keys) { if ($bootEnv[$k] -ne "") { Write-Output ("[boot] env {0}={1}" -f $k, $bootEnv[$k]) } }
382 Write-Output "[boot] command $(ConvertTo-ProcessArgument $Runtime) $argLine" 401 Write-Output "[boot] command $(ConvertTo-ProcessArgument $Runtime) $argLine"
383} 402}
@@ -417,7 +436,7 @@ if (-not $DigestOnly) {
417 } 436 }
418 } 437 }
419 438
420 foreach ($d in @($OutDir, $Overlay)) { New-Item -ItemType Directory -Force -Path $d | Out-Null } 439 foreach ($d in @($OutDir, $Overlay, $RunDirectory)) { New-Item -ItemType Directory -Force -Path $d | Out-Null }
421 if ($bootEnv["LEONIDA_PIPELINE_CACHE_DIR"]) { 440 if ($bootEnv["LEONIDA_PIPELINE_CACHE_DIR"]) {
422 New-Item -ItemType Directory -Force -Path $bootEnv["LEONIDA_PIPELINE_CACHE_DIR"] | Out-Null 441 New-Item -ItemType Directory -Force -Path $bootEnv["LEONIDA_PIPELINE_CACHE_DIR"] | Out-Null
423 } 442 }
@@ -449,7 +468,7 @@ if (-not $DigestOnly) {
449 $launchArgs = (@($RepoRoot, $crashDir, $Seconds, $runtimePath, $childCommand) | 468 $launchArgs = (@($RepoRoot, $crashDir, $Seconds, $runtimePath, $childCommand) |
450 ForEach-Object { ConvertTo-ProcessArgument ([string]$_) }) -join " " 469 ForEach-Object { ConvertTo-ProcessArgument ([string]$_) }) -join " "
451 } 470 }
452 $proc = Start-Process -FilePath $launchFile -ArgumentList $launchArgs -WorkingDirectory $RepoRoot -NoNewWindow -PassThru ` 471 $proc = Start-Process -FilePath $launchFile -ArgumentList $launchArgs -WorkingDirectory $RunDirectory -NoNewWindow -PassThru `
453 -RedirectStandardError $LogFile -RedirectStandardOutput $StdoutFile 472 -RedirectStandardError $LogFile -RedirectStandardOutput $StdoutFile
454 $handle = $proc.Handle # keeps the exit code readable after the process ends 473 $handle = $proc.Handle # keeps the exit code readable after the process ends
455 $stopped = $false 474 $stopped = $false
@@ -482,6 +501,67 @@ if (-not $DigestOnly) {
482 501
483# -------------------------------------------------------------------------------------------- the digest 502# -------------------------------------------------------------------------------------------- the digest
484 503
504function Get-FaultContext {
505 param([string]$Path)
506 $apis = @("vkAcquireNextImageKHR", "vkBeginCommandBuffer", "vkCreateSwapchainKHR", "vkDeviceWaitIdle",
507 "vkEndCommandBuffer", "vkGetFenceStatus", "vkGetQueryPoolResults", "vkGetSemaphoreCounterValue",
508 "vkQueueBindSparse", "vkQueuePresentKHR", "vkQueueSubmit", "vkQueueWaitIdle", "vkResetFences",
509 "vkSignalSemaphore", "vkWaitForFences", "vkWaitSemaphores")
510 $api = "not observed"
511 $query = "not observed"
512 $lost = $false
513 [long]$queues = 0
514 [long]$reported = 0
515 [long]$decoded = 0
516 [long]$unrecognized = 0
517
518 # Select-String streams matches, including a report that arrives after a long trace.
519 $prefix = '^\s*\[rt\] (device-fault: |vulkan: the device was lost \()'
520 Select-String -LiteralPath $Path -CaseSensitive -Pattern $prefix | ForEach-Object {
521 $tag = $_.Matches[0]
522 $record = $_.Line.Substring($tag.Length).TrimEnd()
523 if ($tag.Groups[1].Value -eq "vulkan: the device was lost (") {
524 $lost = $true
525 if ($api -in @("not observed", "other")) {
526 if ($record -cmatch '^(vkWaitSemaphores|vkGetSemaphoreCounterValue) in the fence dispatcher returned VK_ERROR_DEVICE_LOST\)') {
527 $api = $Matches[1]
528 } elseif ($record.StartsWith("a fence's counter read UINT64_MAX and vkDeviceWaitIdle then returned VK_ERROR_DEVICE_LOST)")) {
529 $api = "vkDeviceWaitIdle"
530 }
531 }
532 } elseif ($record.StartsWith("VK_ERROR_DEVICE_LOST from ")) {
533 $lost = $true
534 if ($api -in @("not observed", "other")) {
535 $api = "other"
536 if ($record -cmatch '^VK_ERROR_DEVICE_LOST from ([^\s(]+)' -and $apis -ccontains $Matches[1]) {
537 $api = $Matches[1]
538 }
539 }
540 } elseif ($record -cmatch '^queue \S+ checkpoints=([0-9]+)$') {
541 [uint32]$count = 0
542 if ([uint32]::TryParse($Matches[1], [ref]$count)) {
543 $queues++
544 $reported += $count
545 }
546 } elseif ($record -cmatch '^stage=0x[0-9a-fA-F]+ submission=[0-9]+ list=[0-9]+ command=[0-9]+ kind=\S+$') {
547 $decoded++
548 } elseif ($record -cmatch '^stage=0x[0-9a-fA-F]+ marker=\S+ \(unrecognized\)$') {
549 $unrecognized++
550 } elseif ($query -eq "not observed") {
551 if ($record.StartsWith("description:")) {
552 $query = if ($record.EndsWith(" (partial report)")) { "partial" } else { "complete" }
553 } elseif ($record -cmatch '^vkGetDeviceFaultInfoEXT (counts|data) failed \(-?[0-9]+\)$') {
554 $query = "$($Matches[1]) failed"
555 } elseif ($record -ceq "fault info collection failed") {
556 $query = "collection failed"
557 }
558 }
559 }
560 if ($lost -or $query -ne "not observed" -or $queues -or $decoded -or $unrecognized) {
561 "fault context: api=$api, query=$query, queues=$queues, reported=$reported, decoded=$decoded, unrecognized=$unrecognized"
562 }
563}
564
485$py = @(Resolve-Python $Python) 565$py = @(Resolve-Python $Python)
486if ($py.Count) { 566if ($py.Count) {
487 $pyArgs = @() 567 $pyArgs = @()
@@ -594,6 +674,10 @@ if ($deviceLost -or $faultClasses.Count) {
594} 674}
595$digest.Add("faults: $faultText") 675$digest.Add("faults: $faultText")
596if ($wrapped) { $digest.Add("wrapped: $wrapped lines mention wrapped V#s") } 676if ($wrapped) { $digest.Add("wrapped: $wrapped lines mention wrapped V#s") }
677if (Test-Path -LiteralPath $LogFile) {
678 $faultContext = Get-FaultContext $LogFile
679 if ($faultContext) { $digest.Add($faultContext) }
680}
597$digest.Add("frames: $capText") 681$digest.Add("frames: $capText")
598$digest.Add("files: $LogFile, $TraceFile, $SummaryFile") 682$digest.Add("files: $LogFile, $TraceFile, $SummaryFile")
599$digest | Out-File -FilePath $DigestFile -Encoding utf8 683$digest | Out-File -FilePath $DigestFile -Encoding utf8
diff --git a/scripts/windows-boot/test_crash_monitor.py b/scripts/windows-boot/test_crash_monitor.py
index 140a870ab..a28af6380 100644
--- a/scripts/windows-boot/test_crash_monitor.py
+++ b/scripts/windows-boot/test_crash_monitor.py
@@ -34,7 +34,7 @@ class CrashMonitorTest(unittest.TestCase):
34 streams = dict((kind, pos) for kind, size, pos in 34 streams = dict((kind, pos) for kind, size, pos in
35 (struct.unpack_from("<III", data, offset + 12*i) for i in range(count))) 35 (struct.unpack_from("<III", data, offset + 12*i) for i in range(count)))
36 self.assertIn(3, streams) # ThreadListStream 36 self.assertIn(3, streams) # ThreadListStream
37 trace = (self.report / "stack.txt").read_text() 37 trace = (self.report / "stack.txt").read_text(encoding="utf-8", errors="replace") # module names may be in the ANSI code page
38 self.assertIn(f"code=0x{code:08x}", trace) 38 self.assertIn(f"code=0x{code:08x}", trace)
39 if exception: 39 if exception:
40 pos = streams[6] # ExceptionStream: thread ID, padding, exception record 40 pos = streams[6] # ExceptionStream: thread ID, padding, exception record
@@ -87,7 +87,7 @@ class CrashMonitorTest(unittest.TestCase):
87 sentinel.write_bytes(b"original") 87 sentinel.write_bytes(b"original")
88 self.assertNotEqual(self.run_fixture("worker"), 0) 88 self.assertNotEqual(self.run_fixture("worker"), 0)
89 self.assertEqual(list(self.report.iterdir()), [sentinel]) 89 self.assertEqual(list(self.report.iterdir()), [sentinel])
90 self.assertEqual(sentinel.read_text(), "original") 90 self.assertEqual(sentinel.read_text(encoding="utf-8"), "original")
91 91
92 def test_repo_rejected(self): 92 def test_repo_rejected(self):
93 self.report = REPO / (self.report.parent.name + "-forbidden") 93 self.report = REPO / (self.report.parent.name + "-forbidden")