Skip to content

Instantly share code, notes, and snippets.

from subprocess import call
import sys
command = 'mvn verify -Dit.test=BfdPeerMsgIT -Dspring.profiles.active="CorfuDao" > /tmp/log'
flag = True
for i in range(10):
try:
call(command, shell=True)
f = open("target/failsafe-reports/com.vmware.nsx.management.edge.publish.CCPPublisherIT.txt", "r")
for l in f:
@transparentshade
transparentshade / runTest.py
Created March 7, 2017 05:29
To Run all tests whose name specified in file test_names.txt.. Test name consist of only test class name
from subprocess import call
file = open("test_names.txt", "r")
count = 1
for fname in file:
fname = fname.strip()
if len(fname) > 0:
try:
command = "mvn verify -Dit.test=" + fname + " > /tmp/log_file" + str(count)
print("Executing command " + command)

Keybase proof

I hereby claim:

  • I am transparentshade on github.
  • I am nbmyid (https://keybase.io/nbmyid) on keybase.
  • I have a public key whose fingerprint is D4DD 0500 6038 E554 CE6D D0E8 718A 1A0B 0C9D C8DA

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am thetransparentshade on github.
  • I am nbmyid (https://keybase.io/nbmyid) on keybase.
  • I have a public key whose fingerprint is D4DD 0500 6038 E554 CE6D D0E8 718A 1A0B 0C9D C8DA

To claim this, I am signing this object: