[med-svn] [Git][med-team/fsm-lite][master] 2 commits: Remove bashism and fix comparison

Andreas Tille (@tille) gitlab at salsa.debian.org
Mon Dec 20 16:30:03 GMT 2021



Andreas Tille pushed to branch master at Debian Med / fsm-lite


Commits:
aa2580a5 by Andreas Tille at 2021-12-20T17:26:57+01:00
Remove bashism and fix comparison

- - - - -
e959cdd8 by Andreas Tille at 2021-12-20T17:29:49+01:00
Ignore i386 in Salsa-CI since it is implicitly excluded by Build-Depends: libsdsl-dev

- - - - -


3 changed files:

- debian/changelog
- debian/salsa-ci.yml
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -4,6 +4,10 @@ fsm-lite (1.0-7) UNRELEASED; urgency=medium
   * Add autopkgtest
     Closes: #986201
 
+  [ Andreas Tille ]
+  * Ignore i386 in Salsa-CI since it is implicitly excluded by
+    Build-Depends: libsdsl-dev
+
  -- Andreas Tille <tille at debian.org>  Mon, 20 Dec 2021 17:14:08 +0100
 
 fsm-lite (1.0-6) unstable; urgency=medium


=====================================
debian/salsa-ci.yml
=====================================
@@ -2,3 +2,7 @@
 include:
   - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
   - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+
+# i386 is implicitly excluded by Build-Depends: libsdsl-dev
+variables:
+  SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1


=====================================
debian/tests/run-unit-test
=====================================
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Author: Lance Lin <LQi254 at protonmail.com>
 # Date: 20 December 2021
@@ -72,7 +72,7 @@ fileSizeMeta=$(cat tmp.meta | cut -f2)
 # Check file size of tmp.tmp matches what is reported by tmp.meta
 fileSize=$(du -b tmp.tmp | cut -f1)
 
-if [[ "$fileSize" -eq "$metaFileSize" ]]
+if [ ${fileSize} -ne ${fileSizeMeta} ]
 then
 	echo "run-unit-test: Failure - output file size does not match expected: $fileSize (generated) instead of $fileSizeMeta (expected)"
 	exit 1



View it on GitLab: https://salsa.debian.org/med-team/fsm-lite/-/compare/2870a5ff204627ab7635e1e1216f1f4a33148869...e959cdd8e6badb857b74238e8023d3f1c307dce2

-- 
View it on GitLab: https://salsa.debian.org/med-team/fsm-lite/-/compare/2870a5ff204627ab7635e1e1216f1f4a33148869...e959cdd8e6badb857b74238e8023d3f1c307dce2
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-med-commit/attachments/20211220/35108087/attachment-0001.htm>


More information about the debian-med-commit mailing list