mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 04:50:44 +00:00
fix: record full Mantis desktop smoke videos
This commit is contained in:
@@ -98,6 +98,7 @@ describe("mantis desktop browser smoke runtime", () => {
|
||||
expect(remoteScript).toContain("ffmpeg");
|
||||
expect(remoteScript).toContain('sudo apt-get update -y >>"$out/apt.log" 2>&1 || true');
|
||||
expect(remoteScript).toContain("desktop-browser-smoke.mp4");
|
||||
expect(remoteScript).not.toContain("-video_size");
|
||||
expect(remoteScript).toContain('url="file://$out/input.html"');
|
||||
expect(remoteScript).toContain('"browserBinary": "$browser_bin"');
|
||||
await expect(fs.readFile(result.screenshotPath ?? "", "utf8")).resolves.toBe("png");
|
||||
|
||||
@@ -247,7 +247,7 @@ if command -v ffmpeg >/dev/null 2>&1; then
|
||||
*.*) ;;
|
||||
*) display_input="$display_input.0" ;;
|
||||
esac
|
||||
ffmpeg -hide_banner -loglevel error -y -f x11grab -video_size 1280x900 -framerate 15 -i "$display_input" -t 10 -pix_fmt yuv420p "$out/desktop-browser-smoke.mp4" >"$out/ffmpeg.log" 2>&1 &
|
||||
ffmpeg -hide_banner -loglevel error -y -f x11grab -framerate 15 -i "$display_input" -t 10 -pix_fmt yuv420p "$out/desktop-browser-smoke.mp4" >"$out/ffmpeg.log" 2>&1 &
|
||||
video_pid=$!
|
||||
else
|
||||
echo "ffmpeg missing; video artifact skipped" >"$out/ffmpeg.log"
|
||||
|
||||
@@ -102,6 +102,7 @@ describe("mantis Slack desktop smoke runtime", () => {
|
||||
expect(remoteScript).toContain("ffmpeg");
|
||||
expect(remoteScript).toContain('sudo apt-get update -y >>"$out/apt.log" 2>&1 || true');
|
||||
expect(remoteScript).toContain("slack-desktop-smoke.mp4");
|
||||
expect(remoteScript).not.toContain("-video_size");
|
||||
expect(remoteScript).toContain("openclaw qa slack");
|
||||
expect(remoteScript).toContain("--scenario 'slack-canary'");
|
||||
expect(remoteScript).toContain("OPENCLAW_MANTIS_SLACK_BROWSER_PROFILE_DIR");
|
||||
|
||||
@@ -317,7 +317,7 @@ if command -v ffmpeg >/dev/null 2>&1; then
|
||||
*.*) ;;
|
||||
*) display_input="$display_input.0" ;;
|
||||
esac
|
||||
ffmpeg -hide_banner -loglevel error -y -f x11grab -video_size 1440x1000 -framerate 15 -i "$display_input" -t 45 -pix_fmt yuv420p "$out/slack-desktop-smoke.mp4" >"$out/ffmpeg.log" 2>&1 &
|
||||
ffmpeg -hide_banner -loglevel error -y -f x11grab -framerate 15 -i "$display_input" -t 45 -pix_fmt yuv420p "$out/slack-desktop-smoke.mp4" >"$out/ffmpeg.log" 2>&1 &
|
||||
video_pid=$!
|
||||
else
|
||||
echo "ffmpeg missing; video artifact skipped" >"$out/ffmpeg.log"
|
||||
|
||||
Reference in New Issue
Block a user