<p>ptrkrysik <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/gr-gsm/+/24087">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  ptrkrysik: Looks good to me, approved; Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tests: fix some shellcheck errors.<br><br>Execute "gnuradio-config-info --version" instead of<br>"gnuradio-companion --version"<br><br>Change-Id: Ia399324ae7a39e120e338c86d449d7c4d54bd866<br>---<br>M tests/scripts/decode.sh<br>M tests/scripts/decrypt.sh<br>2 files changed, 8 insertions(+), 10 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/scripts/decode.sh b/tests/scripts/decode.sh</span><br><span>index b982709..98aa165 100755</span><br><span>--- a/tests/scripts/decode.sh</span><br><span>+++ b/tests/scripts/decode.sh</span><br><span>@@ -1,6 +1,6 @@</span><br><span> #!/bin/bash</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-TEST_DIR=`dirname "$0"`</span><br><span style="color: hsl(120, 100%, 40%);">+TEST_DIR=$(dirname "$0")</span><br><span> </span><br><span> # PYTHONPATH and LD_LIBRARY_PATH are needed on Fedora 26</span><br><span> #</span><br><span>@@ -18,11 +18,10 @@</span><br><span> export RUNLINE="$AP_DECODE -c $SHORTENED_CAPFILE -s $((100000000/174)) -m BCCH -t 0 -v --ppm -10"</span><br><span> echo "Testing with:"</span><br><span> echo "  $RUNLINE"</span><br><span style="color: hsl(0, 100%, 40%);">-#gnuradio 3.8 does not have --version parameter</span><br><span style="color: hsl(0, 100%, 40%);">-#gnuradio-companion --version</span><br><span style="color: hsl(120, 100%, 40%);">+gnuradio-config-info --version</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-cd $TEST_DIR</span><br><span style="color: hsl(0, 100%, 40%);">-cat $CAPFILE | head -c 6000000 > $SHORTENED_CAPFILE</span><br><span style="color: hsl(120, 100%, 40%);">+cd "$TEST_DIR" || exit 1</span><br><span style="color: hsl(120, 100%, 40%);">+head -c 6000000 $CAPFILE  > $SHORTENED_CAPFILE</span><br><span> </span><br><span> $RUNLINE | grep -A 999999 "860933 1329237:  59 06 1a 8f 6d 18 10 80 00 00 00 00 00 00 00 00 00 00 00 78 b9 00 00" | tee $RESULT_OBTAINED</span><br><span> diff $RESULT_EXPECTED $RESULT_OBTAINED</span><br><span>diff --git a/tests/scripts/decrypt.sh b/tests/scripts/decrypt.sh</span><br><span>index 7f9bc60..824955f 100755</span><br><span>--- a/tests/scripts/decrypt.sh</span><br><span>+++ b/tests/scripts/decrypt.sh</span><br><span>@@ -1,6 +1,6 @@</span><br><span> #!/bin/bash</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-TEST_DIR=`dirname "$0"`</span><br><span style="color: hsl(120, 100%, 40%);">+TEST_DIR=$(dirname "$0")</span><br><span> </span><br><span> # PYTHONPATH and LD_LIBRARY_PATH are needed on Fedora 26</span><br><span> #</span><br><span>@@ -18,11 +18,10 @@</span><br><span> export RUNLINE="$AP_DECODE -c $SHORTENED_CAPFILE -s $((100000000/174)) -m SDCCH8 -t 1 -k 0x1E,0xF0,0x0B,0xAB,0x3B,0xAC,0x70,0x02 -v --ppm -10"</span><br><span> echo "Testing with:"</span><br><span> echo "  $RUNLINE"</span><br><span style="color: hsl(0, 100%, 40%);">-#gnuradio 3.8 does not have --version parameter</span><br><span style="color: hsl(0, 100%, 40%);">-#gnuradio-companion --version</span><br><span style="color: hsl(120, 100%, 40%);">+gnuradio-config-info --version</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-cd $TEST_DIR</span><br><span style="color: hsl(0, 100%, 40%);">-cat $CAPFILE | head -c -37000000 | head -c 35800000  > $SHORTENED_CAPFILE</span><br><span style="color: hsl(120, 100%, 40%);">+cd "$TEST_DIR" || exit 1</span><br><span style="color: hsl(120, 100%, 40%);">+head -c -37000000 $CAPFILE | head -c 35800000  > $SHORTENED_CAPFILE</span><br><span> </span><br><span> $RUNLINE | grep -A 999999 "862210 1331352:  03 03 01 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b" | tee $RESULT_OBTAINED</span><br><span> diff -u $RESULT_EXPECTED $RESULT_OBTAINED</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/gr-gsm/+/24087">change 24087</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/gr-gsm/+/24087"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: gr-gsm </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia399324ae7a39e120e338c86d449d7c4d54bd866 </div>
<div style="display:none"> Gerrit-Change-Number: 24087 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: ptrkrysik <ptrkrysik@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: ptrkrysik <ptrkrysik@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: vvvelichkov <vvvelichkov@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>