Rename test variable

This commit is contained in:
unicxrn committed 2026-10-10 22:46:05 +02:00
1 parent fb790ec104
commit aed84bb97e
6 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ jobs:
"$PY" -m pip install -r engine/requirements.txt pyftpdlib
cp tests/fake_ps5.py "$S/"
python engine/make_fake_dump.py "$S/fakedump/PPSA00001-app"
echo "PACKER_E2E_SCRATCH=$S" >> "$GITHUB_ENV"
echo "PROSPACK_E2E_SCRATCH=$S" >> "$GITHUB_ENV"
echo "PROSPACK_ENGINE=$(cd src-tauri/binaries && pwd)/$(ls src-tauri/binaries | head -1)" >> "$GITHUB_ENV"
- name: App tests (unit + end-to-end)
+1 -1
View File
@@ -61,7 +61,7 @@ jobs:
"$PY" -m pip install -r engine/requirements.txt pyftpdlib
cp tests/fake_ps5.py "$S/"
python engine/make_fake_dump.py "$S/fakedump/PPSA00001-app"
export PACKER_E2E_SCRATCH="$S"
export PROSPACK_E2E_SCRATCH="$S"
export PROSPACK_ENGINE="$(cd src-tauri/binaries && pwd)/$(ls src-tauri/binaries | head -1)"
cargo test --manifest-path src-tauri/Cargo.toml -- --include-ignored --skip discover_lan
+1
View File
@@ -7,3 +7,4 @@ public/mock/
src-tauri/binaries/
installer/src-tauri/payload/
*.bak
__pycache__/
+1 -1
View File
@@ -42,7 +42,7 @@ fake PS5. They never touch a real console. They need a scratch folder containing
- `fakedump/PPSA00001-app`: from `python engine/make_fake_dump.py <scratch>/fakedump/PPSA00001-app`.
```bash
PACKER_E2E_SCRATCH=<scratch> PROSPACK_ENGINE=$PWD/binaries/prospack-engine-<triple> cargo test -- --include-ignored
PROSPACK_E2E_SCRATCH=<scratch> PROSPACK_ENGINE=$PWD/binaries/prospack-engine-<triple> cargo test -- --include-ignored
```
The scenarios covered are:
+2 -2
View File
@@ -508,12 +508,12 @@ mod tests {
mod cancel_test {
use super::*;
/// PACKER_E2E_SCRATCH=<dir with mkvenv> cargo test cancel -- --ignored
/// PROSPACK_E2E_SCRATCH=<dir with mkvenv> cargo test cancel -- --ignored
#[test]
#[ignore]
#[cfg(unix)]
fn cancel_kills_mkpfs_promptly() {
let scratch = PathBuf::from(std::env::var("PACKER_E2E_SCRATCH").unwrap());
let scratch = PathBuf::from(std::env::var("PROSPACK_E2E_SCRATCH").unwrap());
let tmp = tempfile::tempdir().unwrap();
let root = tmp.path().join("engine");
std::fs::create_dir_all(&root).unwrap();
+2 -2
View File
@@ -871,7 +871,7 @@ mod tests {
}
/// End-to-end run against a local fake PS5 (FTP + fake ShadowMountPlus). Never touches a real
/// console. Run with: PACKER_E2E_SCRATCH=<dir with mkvenv, fake_ps5.py, fakedump> cargo test e2e -- --ignored
/// console. Run with: PROSPACK_E2E_SCRATCH=<dir with mkvenv, fake_ps5.py, fakedump> cargo test e2e -- --ignored
#[cfg(test)]
mod e2e {
use super::*;
@@ -903,7 +903,7 @@ mod e2e {
#[test]
#[ignore]
fn e2e_local_fake_ps5() {
let scratch = PathBuf::from(std::env::var("PACKER_E2E_SCRATCH").expect("PACKER_E2E_SCRATCH"));
let scratch = PathBuf::from(std::env::var("PROSPACK_E2E_SCRATCH").expect("PROSPACK_E2E_SCRATCH"));
let tmp = tempfile::tempdir().unwrap();
std::env::set_var("PROSPACK_CONFIG_DIR", tmp.path().join("config"));
std::env::set_var("PROSPACK_DATA_DIR", tmp.path().join("data"));