Minor improvement to git checkout expect pattern
diff --git a/TestON/drivers/common/cli/onosdriver.py b/TestON/drivers/common/cli/onosdriver.py
index a85214e..7abbcc6 100644
--- a/TestON/drivers/common/cli/onosdriver.py
+++ b/TestON/drivers/common/cli/onosdriver.py
@@ -422,7 +422,7 @@
[ 'fatal',
'Username for (.*): ',
'Already on \'',
- 'Switched to branch \'' + str( branch ),
+ 'Switched to (a new )?branch \'' + str( branch ),
pexpect.TIMEOUT,
'error: Your local changes to the following files' +
'would be overwritten by checkout:',