Skip to content

Instantly share code, notes, and snippets.

@past
Created July 31, 2013 10:55
Show Gist options
  • Save past/6121114 to your computer and use it in GitHub Desktop.
Save past/6121114 to your computer and use it in GitHub Desktop.
Run a test until it fails in order to reproduce an intermittent test failure.
#!/bin/bash
# Change MOZCONFIG to point to a different build configuration or comment it out to use the default.
export MOZCONFIG=.mozconfig-opt
declare -i count=0
result=0
while [ $result -eq 0 ]
do
# Modify the next line to specify the exact mach invocation that should be tried.
mach mochitest-browser browser/devtools/debugger/test/browser_dbg_event-listeners.js
#mach xpcshell-test -d toolkit/devtools/server/tests/unit/test_dbgsocket.js
result=$?
count+=1
done
echo "Intermittent failure after $count runs."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment