Skip to contentSkip to conversation

tests: Add rtc-test (fix test regression)

PATCH Applied Stefan Weil 4 participants 4 messages May 15, 2012 – May 19, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: Add rtc-test (fix test regression)

Commit 93e9eb6808c886f5f1c903b7ced1eed65de2ba39 added fdc-test, but accidentally removed rtc-test because check-qtest-i386-y was not enhanced but set twice.

This patch adds rtc-test again (and sorts both tests alphabetically).

---
 tests/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/Makefile +1 -1
index f1b317a..ab7f667 100644
@@ -18,8 +18,8 @@ check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh
 
 # All QTests for now are POSIX-only, but the dependencies are
 # really in libqtest, not in the testcases themselves.
-check-qtest-i386-y = tests/rtc-test$(EXESUF)
 check-qtest-i386-y = tests/fdc-test$(EXESUF)
+check-qtest-i386-y += tests/rtc-test$(EXESUF)
 check-qtest-x86_64-y = $(check-qtest-i386-y)
 check-qtest-sparc-y = tests/m48t59-test$(EXESUF)
 check-qtest-sparc64-y = tests/m48t59-test$(EXESUF)
Signature · 1 line
1.7.10
Reviewed-by on v1 1/1
#1 lore raw

Am 15.05.2012 18:19, schrieb Stefan Weil:

Quoted 7 lines

Commit 93e9eb6808c886f5f1c903b7ced1eed65de2ba39 added fdc-test, but accidentally removed rtc-test because check-qtest-i386-y was not enhanced but set twice.

This patch adds rtc-test again (and sorts both tests alphabetically).

I wonder though if it might be better to always just use += because especially an alphabetical order risks us introducing the same fault again.

Andreas

Quoted 18 lines
---
 tests/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/Makefile +1 -1
index f1b317a..ab7f667 100644
@@ -18,8 +18,8 @@ check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh
 
 # All QTests for now are POSIX-only, but the dependencies are
 # really in libqtest, not in the testcases themselves.
-check-qtest-i386-y = tests/rtc-test$(EXESUF)
 check-qtest-i386-y = tests/fdc-test$(EXESUF)
+check-qtest-i386-y += tests/rtc-test$(EXESUF)
 check-qtest-x86_64-y = $(check-qtest-i386-y)
 check-qtest-sparc-y = tests/m48t59-test$(EXESUF)
 check-qtest-sparc64-y = tests/m48t59-test$(EXESUF)
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#2 lore raw

Am 16.05.2012 06:07, schrieb Andreas Färber:

Quoted 5 lines

Am 15.05.2012 18:19, schrieb Stefan Weil:

Quoted 4 lines

Commit 93e9eb6808c886f5f1c903b7ced1eed65de2ba39 added fdc-test, but accidentally removed rtc-test because check-qtest-i386-y was not enhanced but set twice.

Quoted 8 lines
Quoted 3 lines

This patch adds rtc-test again (and sorts both tests alphabetically).

I wonder though if it might be better to always just use += because especially an alphabetical order risks us introducing the same fault again.

Yes, I think that would be better.

Kevin

Applied
#3 lore raw
In reply to Stefan Weil

Thanks, applied.

Quoted 29 lines · Stefan Weil

Commit 93e9eb6808c886f5f1c903b7ced1eed65de2ba39 added fdc-test, but accidentally removed rtc-test because check-qtest-i386-y was not enhanced but set twice.

This patch adds rtc-test again (and sorts both tests alphabetically).

---
 tests/Makefile |    2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
tests/Makefile +1 -2
index f1b317a..ab7f667 100644
@@ -18,8 +18,8 @@ check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh
 
  # All QTests for now are POSIX-only, but the dependencies are
  # really in libqtest, not in the testcases themselves.
-check-qtest-i386-y = tests/rtc-test$(EXESUF)
  check-qtest-i386-y = tests/fdc-test$(EXESUF)
+check-qtest-i386-y += tests/rtc-test$(EXESUF)
  check-qtest-x86_64-y = $(check-qtest-i386-y)
  check-qtest-sparc-y = tests/m48t59-test$(EXESUF)
  check-qtest-sparc64-y = tests/m48t59-test$(EXESUF)
--

1.7.10