Kaydet (Commit) 8410f1ca authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

testler eklendi

üst e0d1c4b2
......@@ -47,17 +47,17 @@ if 'dist' in sys.argv:
shutil.rmtree(distdir)
sys.exit(0)
#elif 'test' in sys.argv:
# fail = 0
# for test in os.listdir("tests"):
# if test.endswith(".py"):
# if 0 != subprocess.call(["tests/" + test]):
# fail += 1
# print(test, "failed!")
# if not fail:
# print("all tests passed :)")
# sys.exit(0)
# sys.exit(1)
elif 'test' in sys.argv:
fail = 0
for test in os.listdir("tests"):
if test.endswith(".py"):
if 0 != subprocess.call(["tests/" + test]):
fail += 1
print(test, "failed!")
if not fail:
print("all tests passed :)")
sys.exit(0)
sys.exit(1)
class Install(install):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment