Skip to content

Commit

Permalink
Fixed the prepush hook to not fully parallelize as it is racy in lioa…
Browse files Browse the repository at this point in the history
…mber sometimes
  • Loading branch information
manuelF committed Mar 20, 2015
1 parent 891d132 commit ae24a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pre-push.py.hook
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ for line in sys.stdin.readlines():
if re.search("master$", remote_ref):
tmpdir = repo.make_clean_copy()
call("make clean", cwd=tmpdir, save_output=False)
_, _, pid = call("make -j cpu=1 time=1 non_optimize=1", cwd=tmpdir, save_output=False)
_, _, pid = call("make -j3 cpu=1 time=1 non_optimize=1", cwd=tmpdir, save_output=False)
if pid != 0:
print "\033[1;31mError! Fallo la compilacion de LIO ergo no se debe pushear a master\033[0m"
sys.exit(1)
Expand Down

0 comments on commit ae24a00

Please sign in to comment.