[Debian-on-mobile-maintainers] [Git][DebianOnMobile-team/libomemo][wip/fix-reprotest] d/patches: there might be a race condition

Evangelos Ribeiro Tzaras gitlab at salsa.debian.org
Thu Jan 14 11:09:11 GMT 2021



Evangelos Ribeiro Tzaras pushed to branch wip/fix-reprotest at Debian On Mobile / libomemo


Commits:
fddfb516 by Evangelos Ribeiro Tzaras at 2021-01-14T12:08:14+01:00
d/patches: there might be a race condition

when multiple jobs are running in parallel
`mv *.g*` might be moving files from a different job
leaving no files behind matching '*.g*' for the next run
resulting on failure

abc

- - - - -


1 changed file:

- debian/patches/fix-reprotest.patch


Changes:

=====================================
debian/patches/fix-reprotest.patch
=====================================
@@ -2,30 +2,26 @@ From: Evangelos Ribeiro Tzaras <devrtz-debian at fortysixandtwo.eu>
 Subject: WIP: Fix locale variations failing in reprotest
 --- a/Makefile
 +++ b/Makefile
-@@ -118,17 +118,26 @@
+@@ -118,19 +118,19 @@
  test_libomemo: $(TDIR)/test_libomemo.c $(SDIR)/libomemo.c
  	$(CC) $(COVFLAGS) $<  $(FILES) -o $(TDIR)/$@.o $(TESTFLAGS)
  	-$(TDIR)/$@.o
-+	ls -la
-+	ls *.g*
-+	ls -l $(TDIR)
- 	mv *.g* $(TDIR)
+-	mv *.g* $(TDIR)
++	find .  -maxdepth 1 -iname '*.g*' -exec mv {} $(TDIR) \;
  
  .PHONY: test_crypto
  test_crypto: $(TDIR)/test_crypto.c $(SDIR)/libomemo_crypto.c
  	$(CC) $(COVFLAGS) $<  $(FILES) -o $(TDIR)/$@.o $(TESTFLAGS)
-+	ls -la
-+	ls *.g*
-+	ls -l $(TDIR)
  	-$(TDIR)/$@.o
- 	mv *.g* $(TDIR)
+-	mv *.g* $(TDIR)
++	find .  -maxdepth 1 -iname '*.g*' -exec mv {} $(TDIR) \;
  
  .PHONY: test_storage
  test_storage: $(TDIR)/test_storage.c $(SDIR)/libomemo_storage.c
  	$(CC) $(COVFLAGS) $< $(FILES) -o $(TDIR)/$@.o $(TESTFLAGS)
-+	ls -la
-+	ls *.g*
-+	ls -l $(TDIR)
  	-$(TDIR)/$@.o
- 	mv *.g* $(TDIR)
+-	mv *.g* $(TDIR)
++	find .  -maxdepth 1 -iname '*.g*' -exec mv {} $(TDIR) \;
  
+ .PHONY: test
+ test : test_libomemo test_crypto test_storage



View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/libomemo/-/commit/fddfb516c131f3f287752eef9c209e070eccfa84

-- 
View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/libomemo/-/commit/fddfb516c131f3f287752eef9c209e070eccfa84
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20210114/1c6e0e14/attachment-0001.html>


More information about the Debian-on-mobile-maintainers mailing list